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

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