Skip to content

Commit

Permalink
Fix boot with LTS kernel by running mkinitfs after kernel installation
Browse files Browse the repository at this point in the history
Resolves #23
  • Loading branch information
petrm authored and jirutka committed Jan 6, 2024
1 parent f70e03f commit 2f3f852
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions alpine-make-vm-image
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,6 @@ fsprogs_pkgs=

prepare_chroot .

#-----------------------------------------------------------------------
einfo "Installing and configuring mkinitfs"

_apk add --root . mkinitfs
setup_mkinitfs . "base $ROOTFS $INITFS_FEATURES"

#-----------------------------------------------------------------------
einfo "Installing kernel linux-$KERNEL_FLAVOR"

Expand All @@ -620,6 +614,12 @@ else
_apk add --root . linux-$KERNEL_FLAVOR linux-firmware-none
fi

#-----------------------------------------------------------------------
einfo "Installing and configuring mkinitfs"

_apk add --root . mkinitfs
setup_mkinitfs . "base $ROOTFS $INITFS_FEATURES"

#-----------------------------------------------------------------------
if [ "$BOOT_MODE" = 'BIOS' ]; then
einfo 'Setting up extlinux bootloader'
Expand Down

0 comments on commit 2f3f852

Please sign in to comment.