-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Distrobuilder fails to build rockylinux-9 vm flavour #818
Comments
You're not passing the architecture through the command line which is probably why this is falling when it's not on our own infrastructure. Note that the YAML files here are those used verbatim in production so if you see the image on our image server you can look at the build logs on https://jenkins.linuxcontainers.org to figure out what you're doing differently |
I tried the architecture parameter without success. I checked the logs on Jenkins and noticed that the image was created in 2 steps: build-dir then pack-incus. Back to my initial build-incus attempt, I can work around the aforementioned error by adding the following sed command to the post-files section: diff --git a/images/rockylinux.yaml b/images/rockylinux.yaml
index 3edb130..2df828d 100644
--- a/images/rockylinux.yaml
+++ b/images/rockylinux.yaml
@@ -372,6 +372,7 @@ actions:
set -eux
kver=$(ls /boot/initramfs-*.img | sed -r 's#.*initramfs-(.+)\.img#\1#')
target=/boot/efi/EFI/rocky/grub.cfg
+ sed -ri 's,/var/cache/distrobuilder[^/]+/rootfs,,' /boot/loader/entries/*.conf
# Create grub.cfg file
grub2-mkconfig -o "${target}"
sed -i "s#root=[^ ]*#root=/dev/sda2#g" "${target}" |
@monstermunchkin any idea why building in one step isn't resulting in the same as the two separate steps here? |
No idea but I'll look into this. |
There's something I noticed. When running
When running
|
Is there a way to turn off the grub2-probe stuff? It's been causing issues by trying to scan various host mounts and devices. |
I haven't found a way of doing this. |
Hello,
The following command fails while building a rockylinux-9 vm flavour:
I patched the yaml file to be slightly more verbose during post-install:
See attached log file rockylinux9-vm.log.
The text was updated successfully, but these errors were encountered: