base: don't install switch_root, if systemd is used
authorHarald Hoyer <harald@redhat.com>
Mon, 12 Aug 2013 10:57:13 +0000 (12:57 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 12 Aug 2013 10:57:41 +0000 (12:57 +0200)
modules.d/99base/module-setup.sh

index f217ccb..52ce400 100755 (executable)
@@ -41,11 +41,10 @@ install() {
 
     mkdir -p ${initdir}/tmp
 
-    inst_multiple switch_root || dfatal "Failed to install switch_root"
-
     inst_simple "$moddir/dracut-lib.sh" "/lib/dracut-lib.sh"
 
     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