From: Ralph Ronnquist Date: Tue, 29 Oct 2024 21:23:33 +0000 (+1100) Subject: Allow for various namings of the linux kernel package X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=31b406994550a9401000384d8ad06457c4a499df;p=rrq%2Fbespoke-installer.git Allow for various namings of the linux kernel package --- diff --git a/build-installer.sh b/build-installer.sh index 0c5545b..68e117d 100755 --- a/build-installer.sh +++ b/build-installer.sh @@ -230,8 +230,10 @@ sed 's/iso9960\b/squashfs/' -i $INITRD/var/lib/dpkg/info/cdrom-detect.postinst # Pack up $INITRD into a top-level initrd.gz, and copy out vmlinuz find $INITRD -not -name udebs -printf '%P\n' | \ fakeroot cpio -o -H newc -D $INITRD | gzip > $TARGET_ARCH/initrd.gz -VMLINUZ=$INITRD/boot/vmlinuz-$KERNELVERSION +VMLINUZ="$INITRD/boot/vmlinuz-$KERNELVERSION" +[ -r "$VMLINUZ" ] || VMLINUZ="$INITRD/boot/vmlinuz" +[ -r "$VMLINUZ" ] || VMLINUZ="$INITRD/boot/vmlinux-$KERNELVERSION" +[ -r "$VMLINUZ" ] || VMLINUZ="$INITRD/boot/vmlinux" +cp $VMLINUZ $TARGET_ARCH/ && ln -sTf "${VMLINUZ#***/}" $TARGET_ARCH/kernel #-- Note that this renames it to vmlinuz regarless of its real name #-- Eg the riscv64 kernel is actually not compressed -cp $VMLINUZ $TARGET_ARCH/vmlinuz -