2015-07-22 14:14:34 +00:00
|
|
|
From f81575bfb4a5e65950a7abc2ee5212525f86ad22 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
|
2015-07-22 14:14:34 +00:00
|
|
|
Subject: [PATCH 37/74] 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
|
2015-07-22 13:44:51 +00:00
|
|
|
index 3183744..2c17979 100644
|
2014-03-13 18:02:22 +00:00
|
|
|
--- a/util/grub-mkconfig.in
|
|
|
|
+++ b/util/grub-mkconfig.in
|
2015-07-22 13:44:51 +00:00
|
|
|
@@ -275,7 +275,8 @@ and /etc/grub.d/* files or please file a bug report with
|
2014-03-13 18:02:22 +00:00
|
|
|
echo >&2
|
|
|
|
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
|
|
|
|
|
|
|
|
--
|
2015-07-22 13:44:51 +00:00
|
|
|
2.4.3
|
2014-03-13 18:02:22 +00:00
|
|
|
|