canonical / packer-maas

Packer templates to create MAAS deployable images
Other
279 stars 169 forks source link

Custom image could not boot. #217

Closed qcu266 closed 6 months ago

qcu266 commented 6 months ago

I try rockylinux/9, almalinux/9 template build custom image, but could not boot when I deploy to machine.

image

I mount the rootfs to /mnt, found /mnt/etc/kernel/cmdline use root=UUID=xxxx as kernel paramater, and the uuid is different with real root device /dev/sda2 I mounted the rootfs to /mnt and found that /mnt/etc/kernel/cmdline uses root=UUID=xxxx as a kernel parameter, but the UUID is different from the actual root device /dev/sda2.

image

How should I solve this problem?

qcu266 commented 6 months ago

I modified /boot/loader/entries/81919bf3c1234030adfcb1bb8b2f9772-5.14.0-362.18.1.el9_3.x86_64.conf, set the correct uuid, it starts normally

image