From: Harald Hoyer Date: Thu, 2 Jul 2009 09:38:37 +0000 (+0200) Subject: derror if we can't install switch_root X-Git-Tag: 0.3~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7717b4433a39f108138690f257271eddbeac1f69;p=thirdparty%2Fdracut.git derror if we can't install switch_root --- diff --git a/modules.d/99base/install b/modules.d/99base/install index 01ad771ee..b233f9717 100755 --- a/modules.d/99base/install +++ b/modules.d/99base/install @@ -10,7 +10,8 @@ inst "$moddir/init" "/init" if which switch_root >/dev/null 2>&1; then dracut_install switch_root else - inst "$moddir/switch_root" "/sbin/switch_root" + inst "$moddir/switch_root" "/sbin/switch_root" \ + || derror "Failed to install switch_root" fi inst "$moddir/dracut-lib.sh" "/lib/dracut-lib.sh" inst_hook cmdline 10 "$moddir/parse-root-opts.sh"