actually apply overrides

This commit is contained in:
Neil Hanlon 2022-10-18 12:03:30 -04:00
parent e95986917e
commit 16a9ba7f14
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
3 changed files with 53 additions and 1 deletions

View File

@ -1,12 +1,19 @@
include:
- ignition-and-ostree.yaml
- shared-el9.yaml
- shared-workarounds.yaml
ostree-layers:
- overlay/05core
- overlay/08nouveau
- overlay/09misc
- overlay/20platform-chrony
conditional-include:
- if: releasever <= 8
include: fallback-hostname.yaml
packages:
- rpm
- policycoreutils

10
manifests/shared-el9.yaml Normal file
View File

@ -0,0 +1,10 @@
# These are packages that are shared between FCOS and
# RHCOS/SCOS 9+
packages:
# SSH
- ssh-key-dir
ostree-layers:
- overlay/06el9

View File

@ -0,0 +1,35 @@
# This manifest is a list of shared workarounds that are needed in both Fedora CoreOS
# and downstreams (i.e. Red Hat CoreOS).
postprocess:
# Put in the fix for multipathd.service in dracut on releases that haven't
# been fixed yet.
# https://github.com/dracutdevs/dracut/pull/1606
# https://github.com/coreos/fedora-coreos-config/pull/1233
- |
#!/usr/bin/env bash
set -xeuo pipefail
source /etc/os-release
# This has landed in Fedora but not in any version of RHEL yet
if [[ ${ID} != "rhel" ]]; then
exit 0
fi
mkdir /usr/lib/dracut/modules.d/36coreos-multipath-fix
cat > /usr/lib/dracut/modules.d/36coreos-multipath-fix/90-multipathd-remove-execstop.conf <<'EOF'
# Temporary workaround for https://github.com/dracutdevs/dracut/pull/1606.
[Service]
ExecStop=
EOF
cat > /usr/lib/dracut/modules.d/36coreos-multipath-fix/module-setup.sh <<'EOF'
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
install() {
# Temporary workaround for https://github.com/dracutdevs/dracut/pull/1606.
mkdir -p "$systemdsystemunitdir/multipathd.service.d"
inst_simple "$moddir/90-multipathd-remove-execstop.conf" \
"$systemdsystemunitdir/multipathd.service.d/90-multipathd-remove-execstop.conf"
}
EOF
chmod +x /usr/lib/dracut/modules.d/36coreos-multipath-fix/module-setup.sh