From 5b565beaeaf605ba72b43c15e59ec85ca524728b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 15 Jun 2010 18:56:00 +0200 Subject: scripts/functions: allow hooks to abort build Execute call_scripts() under "set -e" so hook scripts can exit initrd build iff necessary. Closes: #396388 Signed-off-by: Michael Prokop --- scripts/functions | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/functions b/scripts/functions index 685642e..641e678 100644 --- a/scripts/functions +++ b/scripts/functions @@ -200,6 +200,8 @@ get_prereq_pairs() call_scripts() { + # allow hooks to abort build: + set -e for cs_x in ${runlist}; do [ -f ${initdir}/${cs_x} ] || continue # mkinitramfs verbose output @@ -212,6 +214,7 @@ call_scripts() . /conf/param.conf fi done + set +e } run_scripts() -- cgit v1.2.3