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]
|
[Unit]
|
||||||
Description=lvm-devices-import to create system.devices
|
Description=lvm-devices-import to create system.devices
|
||||||
|
ConditionPathExists=!/etc/lvm/devices/system.devices
|
||||||
|
|
||||||
# /run/lvm/lvm-devices-import created by vgchange -aay <rootvg>
|
# /run/lvm/lvm-devices-import created by vgchange -aay <rootvg>
|
||||||
|
|
||||||
[Path]
|
[Path]
|
||||||
PathExists=/run/lvm/lvm-devices-import
|
PathExists=/run/lvm/lvm-devices-import
|
||||||
Unit=lvm-devices-import.service
|
Unit=lvm-devices-import.service
|
||||||
ConditionPathExists=!/etc/lvm/devices/system.devices
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Create lvm system.devices
|
Description=Create lvm system.devices
|
||||||
|
ConditionPathExists=!/etc/lvm/devices/system.devices
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=no
|
RemainAfterExit=no
|
||||||
ExecStart=/usr/sbin/vgimportdevices --rootvg --auto
|
ExecStart=/usr/sbin/vgimportdevices --rootvg --auto
|
||||||
ConditionPathExists=!/etc/lvm/devices/system.devices
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user