From 398daeb3b375b539d0ec37f90a0b32728fa48653 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 11 Jan 2011 17:18:58 +0100 Subject: [PATCH] Catch errors from append_* (lesson from bug #246370) --- gen_initramfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.26.2