You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't look for host policy with --source-imageref #1438
To have it working I have applied custom Lorax template and sideloaded the selinux-policy-targeted rpm package. End result was OS not booting at all:
Thanks to the team debugging effort I was able to boot the image by manually adding selinux=0 to kernel parameters list in grub.
This solved the bootc SELinux policies complain but I reached the next error:
error: Installing to filesystem: Creating ostree deployment: Creating importer: failed to invoke method OpenImage: failed to invoke method OpenImage: 'overlay' is not supported over overlayfs, a mount_program is required: backing file system is unsupported for this graph driver
Thanks to the team debugging effort I was able to boot the image by manually adding selinux=0 to kernel parameters list in grub.
Hmm...that will have other side effects. Doesn't Anaconda run today in permissive=1? A bit odd that including the policy package would cause this. I guess this does need some digging.
overlay' is not supported over overlayfs,
This is a different issue, it's not related to authentication to the registry. The problem is because Anaconda is mounting an overlayfs for /. Try just typing e.g. podman images - it fails with the same error.
Though Fedora Workstation is set up the same way, but doesn't fail. I am not sure why. It's very clear that /var/lib/containers/storage is an overlay there too which should fail but doesn't...I am not seeing any obvious changes to the podman root storage config to redirect it set up in Workstation.
It's notable though the "LiveOS" approach used for Fedora CoreOS is different because we don't default to writability for / so we make dedicated tmpfs for /etc and /var which avoids overlay-on-overlay consistently.
Try just typing e.g. podman images - it fails with the same error.
So a workaround here is mount -t tmpfs tmpfs /var/lib/containers e.g. (probably better done via a systemd .mount unit).
But
It's notable though the "LiveOS" approach used for Fedora CoreOS
To expand on this the really nice thing about the design we have for image-based derivatives is that we have a strong stance that the system should support an empty /var so we can sanely just make a tmpfs for all of var, and that's that.
OK, it looks like it may be caused by small amount of RAM on my VM. After changing from 4G to 20G I reached new point:
error: Installing to filesystem: Creating ostree deployment: Creating importer: failed to invoke method OpenImage: failed to invoke method OpenImage: reference "[overlay@/var/lib/containers/storage+/run/containers/storage:overlay.imagestore=/usr/lib/containers/storage,overlay.mountopt=nodev,metacopy=on]quay.io/centos-bootc/centos-bootc:stream9" does not resolve to an image ID
@cgwalters one question here - bootc expects to have an empty target directory, just to complain later there is no /boot directory presented. Can you elaborate a bit about bootc using the /boot directory? I guess it expects to find a kernel there together with the grub config? I tried with empty /boot directory on target partition and it ends up with:
@jbtrystram - thanks for the fast answer:) If I can trick bootupctl using some symlinks / copy pasting files in some expected location? I will use BOOTC_BOOTLOADER_DEBUG=1 for sure too.
@cgwalters those are the build of latest master branch? I see lots of State: failed - will this not interfere with our testing on Anaconda env somewhere else?
@cgwalters those are the build of latest master branch?
Yes it auto-builds from git main
I see lots of State: failed - will this not interfere with our testing on Anaconda env somewhere else?
When one digs in note that it's only rhel and opensuse builds that are failing. The RHEL ones are because its Rust is too old. (centos stream is new enough)
Activity
cgwalters commentedon Jul 24, 2025
The workaround for this is to just install a policy in the buildroot (e.g.
selinux-policy-targetedin Fedora).elkoniu commentedon Jul 25, 2025
Hi @cgwalters , thanks for the update. I have tried the workaround and it is more complicated.
The 1st thing is that standalone package install is not enough as SELinux removal is part of the Lorax runtime removal template:
https://github.com/weldr/lorax/blob/913cb696fd992e867f6e6ea043293da6dad7ba6e/share/templates.d/99-generic/runtime-cleanup.tmpl#L21
To have it working I have applied custom Lorax template and sideloaded the
selinux-policy-targetedrpm package. End result was OS not booting at all:Thanks to the team debugging effort I was able to boot the image by manually adding
selinux=0to kernel parameters list in grub.This solved the bootc SELinux policies complain but I reached the next error:
I am not sure if this is some authentication to registry issue (https://access.redhat.com/solutions/7086221) or yet another blocker we need to resolve.
cgwalters commentedon Jul 25, 2025
Hmm...that will have other side effects. Doesn't Anaconda run today in
permissive=1? A bit odd that including the policy package would cause this. I guess this does need some digging.This is a different issue, it's not related to authentication to the registry. The problem is because Anaconda is mounting an overlayfs for
/. Try just typing e.g.podman images- it fails with the same error.Though Fedora Workstation is set up the same way, but doesn't fail. I am not sure why. It's very clear that
/var/lib/containers/storageis anoverlaythere too which should fail but doesn't...I am not seeing any obvious changes to the podman root storage config to redirect it set up in Workstation.It's notable though the "LiveOS" approach used for Fedora CoreOS is different because we don't default to writability for
/so we make dedicatedtmpfsfor/etcand/varwhich avoids overlay-on-overlay consistently.cgwalters commentedon Jul 25, 2025
So a workaround here is
mount -t tmpfs tmpfs /var/lib/containerse.g. (probably better done via a systemd.mountunit).But
To expand on this the really nice thing about the design we have for image-based derivatives is that we have a strong stance that the system should support an empty
/varso we can sanely just make a tmpfs for all of var, and that's that.elkoniu commentedon Jul 25, 2025
Just for the record - I have tired this with various combinations of
selinux=0/1andenforcing=0/1. So far result is the same.elkoniu commentedon Jul 28, 2025
Hi @cgwalters , I have an update about the testing:
This is with
mount -t tmpfs tmpfs /var/lib/containers:I have checked content of the
/var/lib/containersand tried variants with:The result is the same.
My other observation is that with
mountin place bootc fails faster.All the above has been tested with
selinux=0kernel parameter.elkoniu commentedon Jul 28, 2025
OK, it looks like it may be caused by small amount of RAM on my VM. After changing from 4G to 20G I reached new point:
jkonecny12 commentedon Jul 28, 2025
This is starting to show that we need to store the container image on the disk instead of memory I would say. The RAM requirement might be insane...
elkoniu commentedon Jul 28, 2025
Now I realized I was using wrong repo modifier. Now with this call:
@cgwalters one question here -
bootcexpects to have an empty target directory, just to complain later there is no/bootdirectory presented. Can you elaborate a bit aboutbootcusing the/bootdirectory? I guess it expects to find a kernel there together with the grub config? I tried with empty/bootdirectory on target partition and it ends up with:We are almost there :)
elkoniu commentedon Jul 30, 2025
With the 20G of RAM attached to VM the steep with
mount -t tmpfs tmpfs /var/lib/containersis not needed.elkoniu commentedon Jul 30, 2025
I have reached a new blocker related to bootloader deployment:
It looks like it is the issue mentioned by @jbtrystram here: #1455
What would be a valid workaround around this?
jbtrystram commentedon Jul 30, 2025
You can try with a build that includes #1460 it fixed my issue.
Also, try to set
BOOTC_BOOTLOADER_DEBUG=1to learn more about what is missingelkoniu commentedon Jul 30, 2025
@jbtrystram - thanks for the fast answer:) If I can trick
bootupctlusing some symlinks / copy pasting files in some expected location? I will useBOOTC_BOOTLOADER_DEBUG=1for sure too.cgwalters commentedon Jul 30, 2025
Yes easiest is probably to to install a build from https://copr.fedorainfracloud.org/coprs/rhcontainerbot/bootc/ in your testing environment via e.g.
dnf copr enableor just directlyrpm -Uvh https://download.copr.fedorainfracloud.org/results/rhcontainerbot/bootc/fedora-42-aarch64/09356593-bootc/bootc-202507301726.g689340333d-1.fc42.aarch64.rpmor whatevercgwalters commentedon Jul 30, 2025
In this model we're still fetching the image from a registry and directly writing it to the target filesystem, right?
elkoniu commentedon Jul 30, 2025
@cgwalters those are the build of latest master branch? I see lots of
State: failed- will this not interfere with our testing on Anaconda env somewhere else?cgwalters commentedon Jul 30, 2025
Yes it auto-builds from git main
When one digs in note that it's only rhel and opensuse builds that are failing. The RHEL ones are because its Rust is too old. (centos stream is new enough)
elkoniu commentedon Jul 31, 2025
After adding missing
bootupdpackage for the first time the install succeed \o/