2018-07-10 19:08:14 +00:00
|
|
|
From 95da0629418b268bce357954f63e3d11564ec8d9 Mon Sep 17 00:00:00 2001
|
2014-03-13 18:02:22 +00:00
|
|
|
From: Marcel Kolaja <mkolaja@redhat.com>
|
|
|
|
Date: Tue, 21 Jan 2014 10:57:08 -0500
|
2018-07-10 18:39:10 +00:00
|
|
|
Subject: [PATCH] Honor a symlink when generating configuration by
|
2014-03-13 18:02:22 +00:00
|
|
|
grub2-mkconfig
|
|
|
|
|
|
|
|
Honor a symlink when generating configuration by grub2-mkconfig, so that
|
|
|
|
the -o option follows it rather than overwriting it with a regular file.
|
|
|
|
---
|
|
|
|
util/grub-mkconfig.in | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
|
2018-07-10 19:08:14 +00:00
|
|
|
index 33332360eec..bc5a3f17541 100644
|
2014-03-13 18:02:22 +00:00
|
|
|
--- a/util/grub-mkconfig.in
|
|
|
|
+++ b/util/grub-mkconfig.in
|
2018-07-10 19:08:14 +00:00
|
|
|
@@ -287,7 +287,8 @@ and /etc/grub.d/* files or please file a bug report with
|
2016-03-04 20:28:21 +00:00
|
|
|
exit 1
|
2014-03-13 18:02:22 +00:00
|
|
|
else
|
|
|
|
# none of the children aborted with error, install the new grub.cfg
|
|
|
|
- mv -f ${grub_cfg}.new ${grub_cfg}
|
|
|
|
+ cat ${grub_cfg}.new > ${grub_cfg}
|
|
|
|
+ rm -f ${grub_cfg}.new
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|