Bootc experimental base image

trying to build a cosmic image with: https://gitlab.com/fedora/bootc/base-images-experimental
Running rpm-ostree postprocessing
error: Doing common postprocessing: renaming etc: unlinkat(etc): Directory not empty
Error: building at STEP "RUN --mount=type=cache,target=/workdir /src/build/postprocess-rootfs /workdir/rootfs": while running runtime: exit status 1
Running rpm-ostree postprocessing
error: Doing common postprocessing: renaming etc: unlinkat(etc): Directory not empty
Error: building at STEP "RUN --mount=type=cache,target=/workdir /src/build/postprocess-rootfs /workdir/rootfs": while running runtime: exit status 1
relavant source code is here: https://github.com/coreos/rpm-ostree/blob/main/src/libpriv/rpmostree-postprocess.cxx#L596 not sure why it's complaining that /etc has data inside of it, as the postprocess should just move /etc to /usr/etc without complaining
3 Replies
Gerblesh
GerbleshOP8mo ago
RUN --mount=type=cache,target=/workdir /src/build/dnf-installroot /workdir/rootfs install -y 'dnf-command(copr)'
RUN --mount=type=cache,target=/workdir /src/build/dnf-installroot /workdir/rootfs copr enable -y ryanabx/cosmic-epoch
RUN --mount=type=cache,target=/workdir /src/build/dnf-installroot /workdir/rootfs install -y vim cosmic-desktop tuned gnome-keyring
RUN --mount=type=cache,target=/workdir /src/build/dnf-installroot /workdir/rootfs install -y 'dnf-command(copr)'
RUN --mount=type=cache,target=/workdir /src/build/dnf-installroot /workdir/rootfs copr enable -y ryanabx/cosmic-epoch
RUN --mount=type=cache,target=/workdir /src/build/dnf-installroot /workdir/rootfs install -y vim cosmic-desktop tuned gnome-keyring
basically just added this to the containerfile
mv ${rootfs}/etc ${rootfs}/usr/etc
mv ${rootfs}/etc ${rootfs}/usr/etc
and this in the postprocess-rootfs file before running rpm-ostree compose postprocess ${rootfs} ${dn}/postprocess-manifest.yaml I think this could definitely be interesting though, if we can get this working we could possibly roll out our own completely container native base images or something. Definitely not for bazzite/bluefin Not sure who else would be interested in this but 90% of the scripts are bash files, besides the rpm-ostree compose dependency in the postprocess step. This also uses DNF instead of layering with rpm-ostree
Gerblesh
GerbleshOP8mo ago
:beagle_failing_builds: @Kyle Gospo any ideas here? I have no clue what's wrong with SELinux lol
Want results from more Discord servers?
Add your server