diff options
author | Michael Prokop <mika@grml.org> | 2010-06-15 18:56:00 +0200 |
---|---|---|
committer | Michael Prokop <mika@debian.org> | 2010-06-16 11:09:40 +0200 |
commit | 5b565beaeaf605ba72b43c15e59ec85ca524728b (patch) | |
tree | d0ccebaa1f8d869f0db8f1591bd1ea10be918326 | |
parent | 4d3852584d6e7c48d08d53c5c33d5c145a726e7a (diff) | |
download | initramfs-tools-5b565beaeaf605ba72b43c15e59ec85ca524728b.tar.gz initramfs-tools-5b565beaeaf605ba72b43c15e59ec85ca524728b.zip |
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 <mika@debian.org>
-rw-r--r-- | scripts/functions | 3 |
1 files changed, 3 insertions, 0 deletions
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() |