]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base: in systemd mode parse-root-opts.sh is in the services
authorHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:10:50 +0000 (17:10 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:29:12 +0000 (17:29 +0100)
modules.d/99base/module-setup.sh

index a512868b21685fd41cdbeb730d1ba6bbd2e6bcc4..81930681341488f88abd4e16d8919c7aaed1aeed 100755 (executable)
@@ -44,14 +44,10 @@ install() {
 
     inst_simple "$moddir/dracut-lib.sh" "/lib/dracut-lib.sh"
 
-    ## save host_devs which we need bring up
-    inst_hook cmdline 00 "$moddir/wait-host-devs.sh"
-    for _dev in ${host_devs[@]}; do
-        _pdev=$(get_persistent_dev $_dev)
-        [ -n "$_pdev" ] && echo $_pdev >> $initdir/etc/host_devs
-    done
-
-    inst_hook cmdline 10 "$moddir/parse-root-opts.sh"
+    if ! dracut_module_included "systemd"; then
+        inst_hook cmdline 10 "$moddir/parse-root-opts.sh"
+    fi
+
     mkdir -p "${initdir}/var"
     [ -x /lib/systemd/systemd-timestamp ] && inst /lib/systemd/systemd-timestamp
     if [[ $realinitpath ]]; then