Fix mkinitfs generation - definitely

This commit is contained in:
LinuxSquare 2024-01-11 18:26:04 +01:00
parent 1e33aed9c3
commit 48f848de3e

View file

@ -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