diff --git a/manifests/fedora-coreos.yaml b/manifests/fedora-coreos.yaml index c06e642b41..6a0d1722c7 100644 --- a/manifests/fedora-coreos.yaml +++ b/manifests/fedora-coreos.yaml @@ -23,6 +23,12 @@ conditional-include: - if: basearch != "s390x" # And remove some cruft from grub2 include: grub2-removals.yaml + - if: basearch == "ppc64le" + # Need OSTree autopruning on ppc64le (because kernels aren't compressed) + # until we increase the size of /boot. + # https://github.com/coreos/fedora-coreos-tracker/issues/1247#issuecomment-1355314761 + # https://github.com/coreos/fedora-coreos-tracker/issues/1495#issuecomment-1561765705 + include: ostree-autoprune.yaml ostree-layers: - overlay/15fcos diff --git a/manifests/ostree-autoprune.yaml b/manifests/ostree-autoprune.yaml new file mode 100644 index 0000000000..8f2617e5ab --- /dev/null +++ b/manifests/ostree-autoprune.yaml @@ -0,0 +1,9 @@ + +postprocess: + # Enable OSTree autopruning to help with /boot size constraints + # https://github.com/coreos/fedora-coreos-tracker/issues/1495 + - | + #!/usr/bin/env bash + overrides_file=/usr/lib/systemd/system/rpm-ostreed.service.d/ostree-autoprune.conf + echo "# https://github.com/coreos/fedora-coreos-tracker/issues/1495" > $overrides_file + echo "OSTREE_ENABLE_AUTO_EARLY_PRUNE=1" >> $overrides_file