From ff8b26d5d5df007cce70cf7d406f3e186430a8bf Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 25 May 2020 15:38:15 +0200 Subject: build-initramfs: exit if compiling any dependencies fail --- build-initramfs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-initramfs.sh b/build-initramfs.sh index 3ff67f6e..4966d0d4 100755 --- a/build-initramfs.sh +++ b/build-initramfs.sh @@ -475,7 +475,10 @@ main() { # Initialize and exit if we are only preparing the build environment . "${_repo_dir}/modules.d/dnbd3-rootfs/helper/build.inc" - build_initialize_components + if ! build_initialize_components; then + echo 'Failed to build required components for dnbd3-rootfs.' + exit 1 + fi if [ "$initialize" = "yes" ]; then echo "Initialization succeeded." exit 0 -- cgit v1.2.3-55-g7522