aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2011-01-11 16:18:58 (GMT)
committerSebastian Pipping <sebastian@pipping.org>2011-01-11 16:24:47 (GMT)
commit398daeb3b375b539d0ec37f90a0b32728fa48653 (patch)
tree29400ee54529f2b9d68d8a394fe1acc093bdb3bd
parentUse LDFLAGS= instead of --with-ldopts on ./configure of e2fsprogs. Version 1... (diff)
downloadgenkernel-398daeb3b375b539d0ec37f90a0b32728fa48653.zip
genkernel-398daeb3b375b539d0ec37f90a0b32728fa48653.tar.gz
genkernel-398daeb3b375b539d0ec37f90a0b32728fa48653.tar.bz2
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
}