Fix mkinitfs generation - definitely
This commit is contained in:
parent
1e33aed9c3
commit
48f848de3e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue