Merge branch 'kernel-install-more-places' into 'main'

kernel-install: Enable everywhere

See merge request fedora/bootc/base-images!84
This commit is contained in:
Colin Walters (Red Hat) 2025-02-03 14:05:34 +00:00
commit ff206c9a3f
1 changed files with 1 additions and 4 deletions

View File

@ -4,13 +4,10 @@ postprocess:
#!/usr/bin/env bash #!/usr/bin/env bash
set -xeuo pipefail set -xeuo pipefail
source /usr/lib/os-release source /usr/lib/os-release
# Check if the ID is Fedora and VERSION_ID is 42 or higher echo -e "# kernel-install will not try to run dracut and allow rpm-ostree to\n\
if [[ "$ID" == "fedora" && "$VERSION_ID" -ge 42 ]]; then
echo -e "# kernel-install will not try to run dracut and allow rpm-ostree to\n\
# take over. Rpm-ostree will use this to know that it is responsible\n\ # take over. Rpm-ostree will use this to know that it is responsible\n\
# to run dracut and ensure that there is only one kernel in the image\n\ # to run dracut and ensure that there is only one kernel in the image\n\
layout=ostree" | tee /usr/lib/kernel/install.conf > /dev/null layout=ostree" | tee /usr/lib/kernel/install.conf > /dev/null
fi
# By default dnf keeps multiple versions of the kernel, with this # By default dnf keeps multiple versions of the kernel, with this
# configuration we tell dnf to treat the kernel as everything else. # configuration we tell dnf to treat the kernel as everything else.
# https://dnf.readthedocs.io/en/latest/conf_ref.html#main-options # https://dnf.readthedocs.io/en/latest/conf_ref.html#main-options