From 5bc74cfcfbd83b7619916c519b96b7075a07080c Mon Sep 17 00:00:00 2001 From: liweidong Date: Mon, 29 Sep 2025 10:17:37 +0800 Subject: [PATCH] grub2: source /etc/default/grub.d/*.cfg after /etc/default/grub Previously only /etc/default/grub was sourced, ignoring fragments in /etc/default/grub.d. This patch sources all *.cfg files after the main grub file, allowing configuration fragments to override defaults. --- src/boot/grub2/grub2-15_ostree | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/boot/grub2/grub2-15_ostree b/src/boot/grub2/grub2-15_ostree index f42356153e..cf8e199b87 100644 --- a/src/boot/grub2/grub2-15_ostree +++ b/src/boot/grub2/grub2-15_ostree @@ -35,6 +35,11 @@ fi # Since there is no need to create menu entries for that case. # See: https://src.fedoraproject.org/rpms/grub2/c/7c2bab5e98d . /etc/default/grub + +for f in /etc/default/grub.d/*.cfg; do + [ -f "$f" ] && . "$f" +done + if test -f /boot/grub2/.grub2-blscfg-supported && \ test "${GRUB_ENABLE_BLSCFG}" = "true"; then exit 0