Open nobodyman1 opened 3 months ago
It looks like it's your host system LVM setup that's being picked up by grub inside the build environment.
We have all our build servers run on the simplest storage configuration possible (single ext4 partition, no LVM) which has us avoid such issues.
I tried a fresh installation of RockyLinux 9.3 with ext4 root partition (no LVM), but the error is still there.
I tried to generate an image, but it doesn´t work.
NAME="Rocky Linux"
VERSION="9.3 (Blue Onyx)"
distrobuilder build-incus rockylinux.yaml --vm --debug --disable-overlay -o image.architecture=x86_64 -o image.release=9 -o image.variant=default -o source.variant=boot
https://raw.githubusercontent.com/lxc/lxc-ci/main/images/rockylinux.yaml
The output shows an error:
but building continues until
To get some more info I added to
rockylinux.yaml
:Here is the additional output:
Result: The kernel and initrd settings are invalid!
As workaround for this I modified
rockylinux.yaml
:With this patch the image is generated. The issue is similar to #785 but in that case there is no call of
grub-install
which can be modified.