From 955730fbe508ce0e23ea44807cf51da34d851d46 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Sat, 7 Apr 2018 23:17:07 +0000 Subject: mknetboot: uncompress arm64 kernel images --- mknetboot.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mknetboot.sh b/mknetboot.sh index 91087de..1c4d084 100755 --- a/mknetboot.sh +++ b/mknetboot.sh @@ -73,4 +73,13 @@ for file in vmlinuz config System.map; do fi done +# arm64 kernel is not a std bzImage but intead gzip compressed image +# iPXE efi mode (default for aarch64) does not support compressed kernel image +if [ "$ARCH" = "aarch64" ] && gunzip -t "$OUTDIR"/vmlinuz-"$FLAVOR" 2> /dev/null; then + TMP_KERNEL=$(mktemp) + zcat "$OUTDIR"/vmlinuz-"$FLAVOR" > $TMP_KERNEL && mv $TMP_KERNEL \ + "$OUTDIR"/vmlinuz-"$FLAVOR" + chmod 644 "$OUTDIR"/vmlinuz-"$FLAVOR" +fi + rm -f "$REPOFILE" -- cgit v1.2.3