coreos/rpm-ostree

debug kernel fails to install on container builds

Opened this issue · 1 comments

even with CLI wrap is enabled we get:

Use `rpm-ostree initramfs` to control client-side initramfs generation.
rpm-ostree: Note: This system is image (rpm-ostree) based.
rpm-ostree: Dropping privileges as `dracut` was executed with not "known safe" arguments.
rpm-ostree: You may invoke the real `dracut` binary in `/usr/libexec/rpm-ostree/wrapped/dracut`.
rpm-ostree: Continuing execution in 5 seconds.

dracut: No permission to write to /boot.

I got this error while using dracut with systemd-nspawn on a (standard) RHEL 9. The -w /boot test fails. Exporting the below env variable before spawning the container worked for me:

# export SYSTEMD_SECCOMP=0