Install selinux-policy first and remove all of its files, to force
SELinux to be inert in the container. This unbreaks the subsequent `dnf
builddep cockpit` which drags in selinux-policy as a dependency, causes
long hangs, tons of lsetfilecon errors, and eventually lots of package
install failures.
See https://bugzilla.redhat.com/show_bug.cgi?id=
1768075
# HACK: no rcm-tools for F31 yet
sudo sed -i "s/\$releasever/30/" /etc/yum.repos.d/rcm-tools-fedora.repo
+# HACK: installing selinux-policy (through transitive builddep cockpit dep) breaks toolbox; https://bugzilla.redhat.com/show_bug.cgi?id=1768075
+sudo dnf install -y selinux-policy
+rpm -ql selinux-policy | sudo xargs rm -f || true
+
sudo dnf builddep -y cockpit
sudo dnf install -y make npm fontconfig git valgrind chromium \
libvirt-daemon-kvm libvirt-client python3-libvirt \