]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: add more ordering
authorHarald Hoyer <harald@redhat.com>
Tue, 19 Mar 2013 11:22:33 +0000 (12:22 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 19 Mar 2013 11:22:33 +0000 (12:22 +0100)
modules.d/98systemd/dracut-mount.service
modules.d/98systemd/dracut-pre-mount.service
modules.d/98systemd/dracut-pre-pivot.service
modules.d/98systemd/module-setup.sh

index 5c12683e17c675f6636e634983dd10a35fec204b..db18f86e1844750ef15f6665193d34a0c4223847 100644 (file)
@@ -10,9 +10,8 @@
 [Unit]
 Description=dracut mount hook
 Documentation=man:dracut-mount.service(8)
-DefaultDependencies=no
 After=initrd-root-fs.target initrd-parse-etc.service
-
+After=dracut-initqueue.service dracut-pre-mount.service
 ConditionPathExists=/etc/initrd-release
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/mount
 ConditionKernelCommandLine=|rd.break=mount
index 0d76943586e731de428e9941c9ef5d25dc6285cd..bec3c7576f66274780a30517d9734c48d5076923 100644 (file)
@@ -11,7 +11,7 @@
 Description=dracut pre-mount hook
 Documentation=man:dracut-pre-mount.service(8)
 DefaultDependencies=no
-Before=initrd-root-fs.target
+Before=initrd-root-fs.target sysroot.mount
 After=dracut-initqueue.service
 After=cryptsetup.target
 ConditionPathExists=/etc/initrd-release
index 72941c9fdf211ccbae00b469a234b0f45211eefd..9d0143c56e36be16ab80fc710daf84f541e6ba00 100644 (file)
@@ -10,8 +10,8 @@
 [Unit]
 Description=dracut pre-pivot and cleanup hook
 Documentation=man:dracut-pre-pivot.service(8)
-DefaultDependencies=no
-After=initrd-fs.target
+After=initrd.target initrd-parse-etc.service
+After=dracut-initqueue.service dracut-pre-mount.service dracut-mount.service
 Before=initrd-cleanup.service
 ConditionPathExists=/etc/initrd-release
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-pivot
index 17dbc44e4e472eed7f2493c8d49f9b91469f9eaf..252074fb5e0b5d2a6d2da09e4666051379f730ed 100755 (executable)
@@ -25,7 +25,7 @@ install() {
 #    fi
 
     if strstr "$prefix" "/run/"; then
-        dfatal "systemd does not work a prefix, which contains \"/run\"!!"
+        dfatal "systemd does not work with a prefix, which contains \"/run\"!!"
         exit 1
     fi