From 2e7f65d96e403e831405a2b3951421f9b7ce8c6b Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 4 Jun 2009 17:20:09 +0200 Subject: [PATCH] try to install switch_root from system --- modules.d/99base/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules.d/99base/install b/modules.d/99base/install index 682004e2..428eaf93 100755 --- a/modules.d/99base/install +++ b/modules.d/99base/install @@ -8,9 +8,10 @@ fi inst "$moddir/init" "/init" # Bail out if switch_root does not exist if [ ! -x "$moddir/switch_root" ]; then - derror "ERROR: $moddir/switch_root does not exist." - exit 1 + # assume it is installed in the standard path + dracut_install switch_root +else + inst "$moddir/switch_root" "/sbin/switch_root" fi -inst "$moddir/switch_root" "/sbin/switch_root" inst "$moddir/dracut-lib" "/lib/dracut-lib" inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"