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