Hey everyone
I’ve been playing around with bootc lately, and managed to come up with the following containerfile (or rather copy paste it from various sources), which works perfectly fine. I can build the container, create an ISO with the bootc image builder, and then install it in a VM with a kickstart script and it runs (except for the graphical.target not getting set as default which seems to be a known bug):
FROM quay.io/fedora/fedora-bootc:42
MAINTAINER marreitin
RUN rmdir /opt && ln -s -T /var/opt /opt
RUN mkdir /var/roothome
RUN dnf -y install @core @base-graphical @workstation-product @container-management @hardware-support @printing @gnome-desktop @firefox
RUN dnf -y install libvirt-daemon-kvm libvirt-daemon-config-network
# Everything works unless I use this:
# RUN dnf -y copr enable yalter/niri
# RUN dnf -y install niri
RUN dnf clean all
RUN dnf -y autoremove
# Enable GDM
RUN systemctl enable gdm
RUN systemctl set-default graphical.target
# Start virtualisation
RUN systemctl enable virtqemud
# Customizations
COPY skel/ /etc/skel
COPY gnome_settings.dconf /etc/dconf/db/local.d/
RUN dconf update
# CLEAN & CHECK
RUN find /var/log -type f ! -empty -delete
RUN rpm-ostree cleanup --repomd
RUN rm --recursive --force /var/* /tmp/*
RUN bootc container lint
But when I uncomment the two lines to install niri, the installation starts but then stops at the stage where it installs the container image. Am I missing something? Or is Niri just weird about it’s installation?
Thanks for any advice