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