Skip to content

Commit

Permalink
manifests: Merge common-el9.yaml into common.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
travier committed Mar 16, 2023
1 parent 3eb4abb commit aa7f640
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 54 deletions.
52 changes: 0 additions & 52 deletions common-el9.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +0,0 @@
# Manifest shared between CentOS Stream 9 and RHEL 9 variants

include:
- fedora-coreos-config/manifests/shared-el9.yaml

# EL9 specific overlays
ostree-layers:
- overlay/07el9

postprocess:
# Collection of workarounds specific to EL9 variants
- |
#!/usr/bin/env bash
set -xeo pipefail
# FIXME: Why is this only broken here? NM isn't removing the link?
sed -i '/etc.resolv/d' /usr/lib/tmpfiles.d/etc.conf
# crio should stop hardcoding things in their config file!
# We are apparently somehow pulling in a conmon override in RHCOS
# that contains /usr/libexec/crio/conmon - WHY?
# sed -i '/conmon.*=/d' /etc/crio/crio.conf
# Oh right but the MCO overrides that too so...
mkdir -p /usr/libexec/crio
ln -sr /usr/bin/conmon /usr/libexec/crio/conmon
# Enable tmp-on-tmpfs by default because we don't want to have things leak
# across reboots, it increases alignment with FCOS, and also fixes the
# Live ISO. First, verify that RHEL is still disabling.
grep -q '# RHEL-only: Disable /tmp on tmpfs' /usr/lib/systemd/system/basic.target
echo '# RHCOS-only: we follow the Fedora/upstream default' >> /usr/lib/systemd/system/basic.target
echo 'Wants=tmp.mount' >> /usr/lib/systemd/system/basic.target
- |
#!/usr/bin/env bash
set -xeo pipefail
# See https://issues.redhat.com/browse/LOG-3117
# Something changed between rhel8 and rhel9 to not generate this by default
# but we have containers that expect it to be mounted so for now let's continue
# generating it.
ln -sr /usr/share/zoneinfo/UTC /etc/localtime
- |
#!/usr/bin/env bash
set -xeuo pipefail
# Backport https://github.com/dracutdevs/dracut/commit/25a92885a9519701cc480298c2b082e2e2bf5ebe
s=/usr/lib/dracut/modules.d/95nvmf/nvmf-autoconnect.sh
if test -f "$s"; then
chmod a+x "$s"
fi
# Packages that are only for SCOS & RHCOS 9
packages:
- openvswitch3.1
40 changes: 40 additions & 0 deletions common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ include:
- fedora-coreos-config/manifests/system-configuration.yaml
- fedora-coreos-config/manifests/user-experience.yaml
- fedora-coreos-config/manifests/shared-workarounds.yaml
- fedora-coreos-config/manifests/shared-el9.yaml
# RHCOS owned packages
- rhcos-packages.yaml

Expand All @@ -14,6 +15,7 @@ ostree-layers:
- overlay/01fcos
- overlay/02fcos-nouveau
- overlay/05rhcos
- overlay/07el9
- overlay/06gcp-routes
- overlay/15rhcos-networkmanager-dispatcher
- overlay/15rhcos-tuned-bits
Expand Down Expand Up @@ -165,6 +167,43 @@ postprocess:
done
done
done
- |
#!/usr/bin/env bash
set -xeo pipefail
# FIXME: Why is this only broken here? NM isn't removing the link?
sed -i '/etc.resolv/d' /usr/lib/tmpfiles.d/etc.conf
# crio should stop hardcoding things in their config file!
# We are apparently somehow pulling in a conmon override in RHCOS
# that contains /usr/libexec/crio/conmon - WHY?
# sed -i '/conmon.*=/d' /etc/crio/crio.conf
# Oh right but the MCO overrides that too so...
mkdir -p /usr/libexec/crio
ln -sr /usr/bin/conmon /usr/libexec/crio/conmon
# Enable tmp-on-tmpfs by default because we don't want to have things leak
# across reboots, it increases alignment with FCOS, and also fixes the
# Live ISO. First, verify that RHEL is still disabling.
grep -q '# RHEL-only: Disable /tmp on tmpfs' /usr/lib/systemd/system/basic.target
echo '# RHCOS-only: we follow the Fedora/upstream default' >> /usr/lib/systemd/system/basic.target
echo 'Wants=tmp.mount' >> /usr/lib/systemd/system/basic.target
- |
#!/usr/bin/env bash
set -xeo pipefail
# See https://issues.redhat.com/browse/LOG-3117
# Something changed between rhel8 and rhel9 to not generate this by default
# but we have containers that expect it to be mounted so for now let's continue
# generating it.
ln -sr /usr/share/zoneinfo/UTC /etc/localtime
- |
#!/usr/bin/env bash
set -xeuo pipefail
# Backport https://github.com/dracutdevs/dracut/commit/25a92885a9519701cc480298c2b082e2e2bf5ebe
s=/usr/lib/dracut/modules.d/95nvmf/nvmf-autoconnect.sh
if test -f "$s"; then
chmod a+x "$s"
fi
remove-files:
# We don't ship man(1) or info(1)
Expand Down Expand Up @@ -229,6 +268,7 @@ packages:
- nfs-utils
- dnsmasq
- NetworkManager-ovs
- openvswitch3.1
# needed for rpm-ostree today
- polkit
# Extra runtime
Expand Down
1 change: 0 additions & 1 deletion manifest-c9s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ variables:
# common to RHEL 9 & C9S variants
include:
- common.yaml
- common-el9.yaml

# Starting from here, everything should be specific to SCOS

Expand Down
1 change: 0 additions & 1 deletion manifest-rhel-9.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ variables:
# common to RHEL 9 & C9S variants
include:
- common.yaml
- common-el9.yaml

# Starting from here, everything should be specific to RHCOS based on RHEL 9.2

Expand Down

0 comments on commit aa7f640

Please sign in to comment.