mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 22:35:28 +00:00
9a4054fb1c
Resolves: rhbz#1344700 - Make chainloader code work right when shim is absent or disabled Resolves: rhbz#1344512 Signed-off-by: Peter Jones <pjones@redhat.com>
29 lines
912 B
Diff
29 lines
912 B
Diff
From 7f1ea377390345b8ef7609ad0fa2952708b17e19 Mon Sep 17 00:00:00 2001
|
|
From: Marcel Kolaja <mkolaja@redhat.com>
|
|
Date: Tue, 21 Jan 2014 10:57:08 -0500
|
|
Subject: [PATCH 05/83] Honor a symlink when generating configuration by
|
|
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 f8496d2..3b070fd 100644
|
|
--- a/util/grub-mkconfig.in
|
|
+++ b/util/grub-mkconfig.in
|
|
@@ -276,7 +276,8 @@ and /etc/grub.d/* files or please file a bug report with
|
|
exit 1
|
|
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
|
|
|
|
--
|
|
2.7.4
|
|
|