diff options
| -rwxr-xr-x | build-initramfs.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
