]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fail, if install failed
authorHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 09:30:36 +0000 (10:30 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 09:32:17 +0000 (10:32 +0100)
dracut-functions

index 7e13ee58148d289171e0721ae2c87374881217ff..d38f990740d7e42e7d07deb013ae79185d4ccd9e 100755 (executable)
@@ -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
 }