From 07f62dc81a75a1746a013230a41ffb0c9ace1452 Mon Sep 17 00:00:00 2001 From: Natanael Copa <ncopa@alpinelinux.org> Date: Wed, 13 Jul 2022 11:37:52 +0200 Subject: [PATCH] scripts/mkimg.base.sh: abort on update-kernel failure --- scripts/mkimg.base.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/mkimg.base.sh b/scripts/mkimg.base.sh index f37810e4cd5a..ca526175f63e 100755 --- a/scripts/mkimg.base.sh +++ b/scripts/mkimg.base.sh @@ -14,7 +14,8 @@ build_kernel() { --feature "$initfs_features" \ --modloopfw "$modloopfw" \ --repositories-file "$APKROOT/etc/apk/repositories" \ - "$DESTDIR" + "$DESTDIR" \ + || return 1 if [ -n "$boot_addons" ]; then for _add in $boot_addons; do apk fetch --quiet --stdout $_add | tar -C "${DESTDIR}" -zx boot/ -- GitLab