1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

systemd: depend on systemd-udev-settle unit in activation unit

The "fedora-wait-storage.service" that the "lvm2-activation.service"
had as a dependency (which was fedora-specific solution anyway)
is obsolete now as this unit called "modprobe scsi_wait_scan"
which is not used anymore.

The "fedora-wait-storage.service" had "systemd-udev-settle" as
its dependency, so let's depend on this one directly now,
bypassing the out-dated "fedora-wait-storage.service".
This commit is contained in:
Peter Rajnoha 2012-09-12 11:30:13 +02:00
parent 3127160626
commit 6d75ff138c
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.98 -
=================================
Depend on systemd-udev-settle in units generated by activation generator.
Fix vgchange -aay to activate proper logical volumes.
Properly handle 'resync' of RAID LVs.
Disallow addition of RAID images until the array is in-sync.

View File

@ -116,12 +116,12 @@ static int generate_unit(const char *dir, int early)
"DefaultDependencies=no\n", f);
if (early)
fputs("After=fedora-wait-storage.service\n", f);
fputs("After=systemd-udev-settle.service\n", f);
else
fputs("After=lvm2-activation-early.service cryptsetup.target\n", f);
fputs("Before=local-fs.target shutdown.target\n"
"Wants=fedora-wait-storage.service\n\n"
"Wants=systemd-udev-settle.service\n\n"
"[Service]\n"
"ExecStart=/usr/sbin/lvm vgchange -aay --sysinit\n"
"Type=oneshot\n", f);