summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping2011-01-11 16:18:58 (GMT)
committerSebastian Pipping2011-01-11 16:24:47 (GMT)
commit398daeb3b375b539d0ec37f90a0b32728fa48653 (patch)
tree29400ee54529f2b9d68d8a394fe1acc093bdb3bd
parentdd18912193862212586ad73141f61829f70dbf3e (diff)
Catch errors from append_* (lesson from bug #246370)
-rwxr-xr-xgen_initramfs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh
index 77bb83e..03b3bdd 100755
--- a/gen_initramfs.sh
+++ b/gen_initramfs.sh
@@ -604,7 +604,7 @@ append_data() {
if [ $# -eq 1 ] || isTrue ${var}
then
print_info 1 " >> Appending ${name} cpio data..."
- ${func}
+ ${func} || gen_die "${func}() failed"
fi
}