derror if we can't install switch_root
authorHarald Hoyer <harald@redhat.com>
Thu, 2 Jul 2009 09:38:37 +0000 (11:38 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 2 Jul 2009 09:47:27 +0000 (11:47 +0200)
modules.d/99base/install

index 01ad771eeca8fff8a28fac44392ddf4d72ced93b..b233f97172f60d74ca83bbd9ee6154af4a6b4af0 100755 (executable)
@@ -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"