From 48f848de3e76ffee097a3049be6c1655bcecc8bf Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Thu, 11 Jan 2024 18:26:04 +0100 Subject: [PATCH] Fix mkinitfs generation - definitely --- airootfs/root/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airootfs/root/install.sh b/airootfs/root/install.sh index 1e4426c..5894de6 100644 --- a/airootfs/root/install.sh +++ b/airootfs/root/install.sh @@ -424,7 +424,8 @@ EOT echo "└──────────────────────────────────────────┘" installationSubtaskTitle "Make EFI boot image with mkinitfs" - chroot "${INSTALLATION_MOUNTPOINT}" /bin/ash -c "mkinitfs $(echo $(apk search linux-lts | head -n1 | cut -d- -f3- | sed 's|r||')-lts)" || installationFailed + latest_kernel="$(chroot $INSTALLATION_MOUNTPOINT /bin/ash -c 'echo $(apk search linux-lts | head -n1 | cut -d- -f3- | sed "s|r||")-lts')" + chroot "${INSTALLATION_MOUNTPOINT}" /bin/ash -c "mkinitfs $latest_kernel" || installationFailed installationSubtaskTitle "Installing grub to /efi" chroot "${INSTALLATION_MOUNTPOINT}" /bin/ash -c "grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=alpine" || installationFailed