diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2012-09-12 11:30:13 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2012-09-12 11:30:13 +0200 |
commit | 6d75ff138cb1614ee5e31bbd0c3c25721ff9514c (patch) | |
tree | 58c155543b4e6e72714fbd2569f263cc728cda94 /scripts | |
parent | 31271606265ec8f7c14734aedbb0a314dfea2cd1 (diff) | |
download | lvm2-6d75ff138cb1614ee5e31bbd0c3c25721ff9514c.tar.gz |
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".
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lvm2_activation_generator_systemd_red_hat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lvm2_activation_generator_systemd_red_hat.c b/scripts/lvm2_activation_generator_systemd_red_hat.c index 9fcee2019..786d79515 100644 --- a/scripts/lvm2_activation_generator_systemd_red_hat.c +++ b/scripts/lvm2_activation_generator_systemd_red_hat.c @@ -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); |