Skip to content

Commit 5bc74cf

Browse files
author
liweidong
committed
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.
1 parent b3fbab5 commit 5bc74cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/boot/grub2/grub2-15_ostree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ fi
3535
# Since there is no need to create menu entries for that case.
3636
# See: https://src.fedoraproject.org/rpms/grub2/c/7c2bab5e98d
3737
. /etc/default/grub
38+
39+
for f in /etc/default/grub.d/*.cfg; do
40+
[ -f "$f" ] && . "$f"
41+
done
42+
3843
if test -f /boot/grub2/.grub2-blscfg-supported && \
3944
test "${GRUB_ENABLE_BLSCFG}" = "true"; then
4045
exit 0

0 commit comments

Comments
 (0)