aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-12-02 21:29:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-12-02 21:29:51 +0000
commit0bd627de56f28063d9fcef455587d0b7d11a00a6 (patch)
treef5e64c04fd7325dc167c8428a94f66778efbe891
parent0d56ee4f8c29bc6f41f17e1673a205f03087e85b (diff)
downloadalpine-conf-0bd627de56f28063d9fcef455587d0b7d11a00a6.tar.bz2
alpine-conf-0bd627de56f28063d9fcef455587d0b7d11a00a6.tar.xz
update-kernel: make mksquashfs exit on error
mksquashfs will ignore errors and continue by default by design. This is definitively not the behavior we want so we tell it to explicitly exit on error.
-rw-r--r--update-kernel.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-kernel.in b/update-kernel.in
index 3e147c8..6d24649 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -259,7 +259,7 @@ find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -
install -pD $ROOT/lib/firmware/$FW $MODLOOP/modules/firmware/$FW
fi
done
-_exec mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz
+_exec mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz -exit-on-error
_exec mkinitfs $MKINITFS_ARGS -q -b $ROOT -F "$features base squashfs" \
-o "$STAGING/initramfs-$FLAVOR" "$KVER"