]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/module-setup.sh: merge systemd conditional
authorHarald Hoyer <harald@redhat.com>
Thu, 19 Mar 2015 09:00:48 +0000 (10:00 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 19 Mar 2015 09:00:48 +0000 (10:00 +0100)
modules.d/99base/module-setup.sh

index a1046af8093592f1ea8dc63e276ba69831cd0f11..fd65cdf6cafe0cf596da5484f9673ec37f03c9bc 100755 (executable)
@@ -43,15 +43,11 @@ install() {
     mkdir -p ${initdir}/tmp
 
     inst_simple "$moddir/dracut-lib.sh" "/lib/dracut-lib.sh"
+    mkdir -p "${initdir}/var"
 
     if ! dracut_module_included "systemd"; then
         inst_multiple switch_root || dfatal "Failed to install switch_root"
         inst_hook cmdline 10 "$moddir/parse-root-opts.sh"
-    fi
-
-    mkdir -p "${initdir}/var"
-
-    if ! dracut_module_included "systemd"; then
         inst_multiple -o $systemdutildir/systemd-timestamp
     fi