Closed
Description
Host system is Fedora 39 Server.
Using the tier1 Fedora ELN image, I created a custom variant that had bootc
installed from Copr:
FROM registry.gitlab.com/centos/cloud/sagano/fedora-boot-tier-1:eln
RUN curl -L -o /etc/yum.repos.d/bootc.repo https://copr.fedorainfracloud.org/coprs/rhcontainerbot/bootc/repo/fedora-rawhide/rhcontainerbot-bootc-fedora-rawhide.repo
RUN sed -i 's|\$releasever|rawhide|' /etc/yum.repos.d/bootc.repo
RUN rpm-ostree install bootc
RUN ostree container commit
Built it successfully with sudo podman build -t sagano-bootc-copr:latest -f Containerfile.sagano .
Tried install-to-filesystem
:
$ image=localhost/sagano-bootc-copr:latest
$ sudo podman run --rm --privileged --pid=host -v /:/target --security-opt label=type:unconfined_t "${image}" bootc install-to-filesystem --target-no-signature-verification --karg=console=ttyS0,115200n8 --replace=alongside /target
Mounting selinuxfs
ERROR No filesystem uuid found in target root
Hmm...looks like it might be SELinux as the culprit:
$ sudo ausearch -m avc
----
time->Fri Nov 3 12:03:42 2023
type=AVC msg=audit(1699027422.008:673): avc: denied { nosuid_transition } for pid=3425 comm="bootc" scontext=system_u:system_r:unconfined_t:s0:c54,c375 tcontext=system_u:system_r:install_t:s0:c54,c375 tclass=process2 permissive=0