From: Harald Hoyer Date: Fri, 6 Mar 2009 09:30:36 +0000 (+0100) Subject: fail, if install failed X-Git-Tag: 0.1~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e5527e3e2db11489b16fa232eeb42151b66edd5;p=thirdparty%2Fdracut.git fail, if install failed --- diff --git a/dracut-functions b/dracut-functions index 7e13ee581..d38f99074 100755 --- a/dracut-functions +++ b/dracut-functions @@ -186,7 +186,11 @@ inst_hook() { dracut_install() { while (($# > 0)); do - inst "$1" && shift + if inst "$1" ; then + shift + continue + fi + echo "Failed to install $1" >&2 ; exit 1 done }