dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0142-BLS-Use-etcdefaultgrub-instead-of-etc.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Jan Hlavac <jhlavac@redhat.com>
d9d99f
Date: Tue, 10 Apr 2018 16:56:28 +0200
d9d99f
Subject: [PATCH] BLS: Use ${etcdefaultgrub} instead of /etc/...
d9d99f
d9d99f
Inside the grub-switch-to-blscfg script the ${etcdefaultgrub} variable
d9d99f
is used. So replace the hardcoded /etc/default/grub with it.
d9d99f
---
d9d99f
 util/grub-switch-to-blscfg.in | 2 +-
d9d99f
 1 file changed, 1 insertion(+), 1 deletion(-)
d9d99f
d9d99f
diff --git a/util/grub-switch-to-blscfg.in b/util/grub-switch-to-blscfg.in
d9d99f
index f740b8f4d03..eae3c379e4a 100644
d9d99f
--- a/util/grub-switch-to-blscfg.in
d9d99f
+++ b/util/grub-switch-to-blscfg.in
d9d99f
@@ -252,7 +252,7 @@ if [[ "${GENERATE}" -eq 1 ]] ; then
d9d99f
         cp -af "${GRUB_CONFIG_FILE}${backupsuffix}" "${GRUB_CONFIG_FILE}"
d9d99f
         sed -i"${backupsuffix}" \
d9d99f
             -e 's,^GRUB_ENABLE_BLSCFG=.*,GRUB_ENABLE_BLSCFG=false,' \
d9d99f
-            /etc/default/grub
d9d99f
+            "${etcdefaultgrub}"
d9d99f
         gettext_printf "Updating %s failed\n" "${GRUB_CONFIG_FILE}"
d9d99f
         exit 1
d9d99f
     fi