1
0
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:
Marian Csontos 2024-09-04 14:40:58 +02:00
parent b7fef5b133
commit 80d7483322
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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