2014-06-24 15:18:06 +00:00
|
|
|
From 37ad82c4f11e293e30eea26302624691e80f19b8 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
|
2014-08-19 13:40:10 +00:00
|
|
|
Subject: [PATCH 125/143] 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
|
|
|
|
index ca040dd..b00f9e6 100644
|
|
|
|
--- a/util/grub-mkconfig.in
|
|
|
|
+++ b/util/grub-mkconfig.in
|
|
|
|
@@ -272,7 +272,8 @@ and /etc/grub.d/* files or please file a bug report with
|
|
|
|
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
|
|
|
|
|
|
|
|
--
|
2014-07-02 15:49:28 +00:00
|
|
|
1.9.3
|
2014-03-13 18:02:22 +00:00
|
|
|
|