Skip to content

Commit

Permalink
manifest: Enable ostree bootloader-naming-2 for f40
Browse files Browse the repository at this point in the history
- This removes the autoprune stuff which is already always on in ostree now
- Add the new "experiment" of bootloader-naming-2; xref ostreedev/ostree#3007
  • Loading branch information
cgwalters committed Nov 8, 2023
1 parent 6b1b56b commit f32a8e1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 deletions.
14 changes: 2 additions & 12 deletions manifests/fedora-coreos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,9 @@ 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
- if:
- basearch == "aarch64"
- releasever >= 39
# In F39+ we will stop removing the qcom dtb files and thus we'll leverage OSTree autopruning
# so that we don't run into https://github.com/coreos/fedora-coreos-tracker/issues/1464
# again. OSTree autopruning is new so we're selectively enabling it before making it the default.
include: ostree-autoprune.yaml
- releasever >= 40
include: ostree-bls.yaml
- if:
- basearch == "aarch64"
- releasever == 38
Expand Down
11 changes: 0 additions & 11 deletions manifests/ostree-autoprune.yaml

This file was deleted.

10 changes: 10 additions & 0 deletions manifests/ostree-bls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Enable fixed OSTree grub2 naming
# https://github.com/ostreedev/ostree/pull/3007
postprocess:
- |
#!/usr/bin/env bash
mkdir -p /usr/lib/systemd/system/ostree-finalize-staged.service.d
cat <<'EOF' > /usr/lib/systemd/system/ostree-finalize-staged.service.d/ostree-bls-naming.conf
[Service]
Environment=OSTREE_SYSROOT_OPTS=bootloader-naming-2
EOF

0 comments on commit f32a8e1

Please sign in to comment.