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