conditional-include:
- if: id != "fedora"
include:
ostree-layers:
- fedora-coreos-config/overlay.d/11legacy-copy-network
packages:
- amd-gpu-firmware intel-gpu-firmware nvidia-gpu-firmware
postprocess:
- |
#!/usr/bin/bash
set -eux -o pipefail
cat > /tmp/fcos-workarounds.cil << EOF
; https://bugzilla.redhat.com/show_bug.cgi?id=2300306
(typeattributeset cil_gen_require bootupd_t)
(typepermissive bootupd_t)
; https://bugzilla.redhat.com/show_bug.cgi?id=2305385
(typeattributeset cil_gen_require coreos_installer_t)
(typepermissive coreos_installer_t)
; https://bugzilla.redhat.com/show_bug.cgi?id=2306352
(typeattributeset cil_gen_require afterburn_t)
(typepermissive afterburn_t)
EOF
/usr/sbin/semodule -i /tmp/fcos-workarounds.cil
rm /tmp/fcos-workarounds.cil
# Also remove created LOCK files as we don't want those
# to end up in /usr/etc
rm -f /etc/selinux/targeted/semanage.*.LOCK