diff options
author | Zhang Bingwu <xtexchooser@duck.com> | 2024-07-14 16:57:50 +0800 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-07-20 13:34:54 +0900 |
commit | af7925d82096d30bf971d41a109bd42f6a027ec2 (patch) | |
tree | 724867071aa4defc8908ddb48e202d19469751bd /arch/s390 | |
parent | 3c2f84cedaeb2fe9575dd3f6edddf0d875b3b97c (diff) |
kbuild: Abort make on install failures
Setting '-e' flag tells shells to exit with error exit code immediately
after any of commands fails, and causes make(1) to regard recipes as
failed.
Before this, make will still continue to succeed even after the
installation failed, for example, for insufficient permission or
directory does not exist.
Signed-off-by: Zhang Bingwu <xtexchooser@duck.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'arch/s390')
-rwxr-xr-x | arch/s390/boot/install.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/boot/install.sh b/arch/s390/boot/install.sh index a13dd2f2aa1c..fa41486258ee 100755 --- a/arch/s390/boot/install.sh +++ b/arch/s390/boot/install.sh @@ -15,6 +15,8 @@ # $3 - kernel map file # $4 - default install path (blank if root directory) +set -e + echo "Warning: '${INSTALLKERNEL}' command not available - additional " \ "bootloader config required" >&2 if [ -f "$4/vmlinuz-$1" ]; then mv -- "$4/vmlinuz-$1" "$4/vmlinuz-$1.old"; fi |