From: Harald Hoyer Date: Wed, 6 Mar 2013 16:10:50 +0000 (+0100) Subject: base: in systemd mode parse-root-opts.sh is in the services X-Git-Tag: 026~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9c7dc74c40f11898d1096d03416caa06cfd975b;p=thirdparty%2Fdracut.git base: in systemd mode parse-root-opts.sh is in the services --- diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh index a512868b2..819306813 100755 --- a/modules.d/99base/module-setup.sh +++ b/modules.d/99base/module-setup.sh @@ -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