mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
scripts: Fix ConditionPathExists in unit files
This commit is contained in:
parent
b7fef5b133
commit
80d7483322
@ -1,12 +1,12 @@
|
||||
[Unit]
|
||||
Description=lvm-devices-import to create system.devices
|
||||
ConditionPathExists=!/etc/lvm/devices/system.devices
|
||||
|
||||
# /run/lvm/lvm-devices-import created by vgchange -aay <rootvg>
|
||||
|
||||
[Path]
|
||||
PathExists=/run/lvm/lvm-devices-import
|
||||
Unit=lvm-devices-import.service
|
||||
ConditionPathExists=!/etc/lvm/devices/system.devices
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,11 +1,11 @@
|
||||
[Unit]
|
||||
Description=Create lvm system.devices
|
||||
ConditionPathExists=!/etc/lvm/devices/system.devices
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
ExecStart=/usr/sbin/vgimportdevices --rootvg --auto
|
||||
ConditionPathExists=!/etc/lvm/devices/system.devices
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user