From 08db5c2418e134852b4181c81fb5aa283b58e03c Mon Sep 17 00:00:00 2001 From: Stefan Hammer Date: Fri, 4 Aug 2023 10:16:00 -0500 Subject: [PATCH] fix(armhf): Fix armhf kernel file detection Armhf images install the `generic-lpae` kernel, while other ARCHes use the standard `generic` kernel when building the "virtual" image flavour. Code was looking for a kernel binary ending with -generic in armhf builds, and failed. Add a special condition to handle armhf builds' kernel ending with `generic-lpae` References: [1] https://bugs.launchpad.net/cloud-images/+bug/2029527 --- live-build/auto/build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/live-build/auto/build b/live-build/auto/build index 2a94e910..d67e5d0e 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -618,7 +618,11 @@ for FLAVOUR in $LB_LINUX_FLAVOURS; do fi case $FLAVOUR in allwinner|virtual|generic-hwe-*) - FLAVOUR="generic" + if [ "$ARCH" = "armhf" ]; then + FLAVOUR="generic-lpae" + else + FLAVOUR="generic" + fi ;; oem-*) FLAVOUR="oem"