alpinelinux / alpine-make-vm-image

Make customized Alpine Linux disk image for virtual machines
MIT License
300 stars 101 forks source link

lts kernel flavor results in broken /sysroot mount path #23

Closed natesales closed 10 months ago

natesales commented 3 years ago

When building an image with the lts kernel-flavor, the resulting image isn't able to find the root fs to mount.

image

I'm using sudo ./alpine-make-vm-image --image-format qcow2 --kernel-flavor lts alpine-test.qcow2 to build the image and sudo kvm -smp 8 -drive file=alpine-test.qcow2 to test in qemu. Replacing the kernel-flavor with the default virt kernel works just fine.

petrm commented 10 months ago

This is caused by running mkinitfs before installing kernel. The modules are missing in the temporary root, because they have not been installed yet.