Skip to content

Commit

Permalink
create new manifest-el9-shared.yaml manifest
Browse files Browse the repository at this point in the history
This makes a manifest to be shared amongst rhel-9.4 rhel-9.6 and c9s
and moves some initial configuration into it, including the disabling
of composefs and the dropping of the zram-generator configuration.
  • Loading branch information
dustymabe committed Feb 11, 2025
1 parent 89b1716 commit 2210ecc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
18 changes: 3 additions & 15 deletions common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ conditional-include:
- if: basearch != "s390x"
# And remove some cruft from grub2
include: fedora-coreos-config/manifests/grub2-removals.yaml
#zram default config is in a subpackage in c10s
# Meanwhile, remove the default config from the package
- if: osversion == "c9s"
include: zram-no-defaults.yaml
include: manifest-el9-shared.yaml
- if: osversion == "rhel-9.4"
include: zram-no-defaults.yaml
include: manifest-el9-shared.yaml
- if: osversion == "rhel-9.6"
include: zram-no-defaults.yaml
include: manifest-el9-shared.yaml
# Packages specific to el9
- if: osversion == "c9s"
include: fedora-coreos-config/manifests/shared-el9.yaml
Expand All @@ -57,16 +55,6 @@ documentation: false
recommends: true

postprocess:
- |
#!/usr/bin/bash
set -xeuo pipefail
# Disable composefs for now on el9 due to ppc64le/kernel-64k bugs:
# https://issues.redhat.com/browse/RHEL-63985
if [ -f /usr/lib/ostree/prepare-root.conf ] && [[ $(rpm -q kernel) = *.el9.* ]]; then
grep -q 'enabled = true' /usr/lib/ostree/prepare-root.conf
sed -i -e 's,enabled = true,enabled = no,' /usr/lib/ostree/prepare-root.conf
fi
# Mark the OS as of the CoreOS variant.
# XXX: should be part of a centos/redhat-release subpackage instead
- |
Expand Down
20 changes: 20 additions & 0 deletions manifest-el9-shared.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Place here configuration that should happen on all el9* builds

#zram default config is in a subpackage in c10s
# Meanwhile, remove the default config from the package
remove-from-packages:
# zram-generator-0.3.2 (shipped in centOS 9) provides a default
# zram-generator config, we want to disable it
- - zram-generator
- "/usr/lib/systemd/zram-generator.conf"

postprocess:
- |
#!/usr/bin/bash
set -xeuo pipefail
# Disable composefs for now on el9 due to ppc64le/kernel-64k bugs:
# https://issues.redhat.com/browse/RHEL-63985
if [ -f /usr/lib/ostree/prepare-root.conf ]; then
grep -q 'enabled = true' /usr/lib/ostree/prepare-root.conf
sed -i -e 's,enabled = true,enabled = no,' /usr/lib/ostree/prepare-root.conf
fi
5 changes: 0 additions & 5 deletions zram-no-defaults.yaml

This file was deleted.

0 comments on commit 2210ecc

Please sign in to comment.