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