summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-08-12 12:57:13 +0200
committerHarald Hoyer <harald@redhat.com>2013-08-12 12:57:41 +0200
commit109283a8830f7b9c1d4bb6b4852f1bff0d36bf30 (patch)
tree8d2df2ccaa0cd1d259fbd1d740e3f9445deda065
parente95b672376314602777989bcb416bf7037ca77bc (diff)
downloaddracut-109283a8830f7b9c1d4bb6b4852f1bff0d36bf30.tar.gz
dracut-109283a8830f7b9c1d4bb6b4852f1bff0d36bf30.tar.bz2
dracut-109283a8830f7b9c1d4bb6b4852f1bff0d36bf30.zip
base: don't install switch_root, if systemd is used
-rwxr-xr-xmodules.d/99base/module-setup.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh
index f217ccbb..52ce4004 100755
--- a/modules.d/99base/module-setup.sh
+++ b/modules.d/99base/module-setup.sh
@@ -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