From 7717b4433a39f108138690f257271eddbeac1f69 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 2 Jul 2009 11:38:37 +0200 Subject: [PATCH] derror if we can't install switch_root --- modules.d/99base/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.2