slackware-current/source/a/grub/0003-support-dropins-for-default-configuration.patch
Patrick J Volkerding 56f32a284b Sun Jun 23 18:58:33 UTC 2024
a/grub-2.12-x86_64-3.txz:  Rebuilt.
  A few more changes, and moved out of /testing.
  Disable stack protector so that legacy BIOS works.
  Add a hint about .cfg suffix requirement in /etc/default/grub.d/.
  Add Richard Cranium's 09_slackware_linux. Thanks to Daedra for POSIX fixes.
l/python-hatchling-1.25.0-x86_64-1.txz:  Upgraded.
l/python-importlib_metadata-7.2.1-x86_64-1.txz:  Upgraded.
EFI/BOOT/bootx64.efi:  Rebuilt.
isolinux/efiboot.img:  Rebuilt.
2024-06-23 21:28:36 +02:00

28 lines
766 B
Diff

From ac560966d09295663fa9516d8d137e0c0fd04c06 Mon Sep 17 00:00:00 2001
From: Christian Hesse <mail@eworm.de>
Date: Mon, 12 Jun 2023 07:42:01 +0200
Subject: [PATCH 1/1] support dropins for default configuration
---
util/grub-mkconfig.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
index 1a945085c..4338dceef 100644
--- a/util/grub-mkconfig.in
+++ b/util/grub-mkconfig.in
@@ -160,6 +160,11 @@ fi
if test -f ${sysconfdir}/default/grub ; then
. ${sysconfdir}/default/grub
fi
+for dropin in ${sysconfdir}/default/grub.d/*.cfg ; do
+ if test -f "${dropin}" ; then
+ . "${dropin}"
+ fi
+done
if [ "x${GRUB_DISABLE_UUID}" = "xtrue" ]; then
if [ -z "${GRUB_DISABLE_LINUX_UUID}" ]; then
--
2.41.0