100e37f2e6
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/grub2#f7e054f3d693af43a903faf33b70673f7aca4508
27 lines
903 B
Diff
27 lines
903 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Marcel Kolaja <mkolaja@redhat.com>
|
|
Date: Tue, 21 Jan 2014 10:57:08 -0500
|
|
Subject: [PATCH] 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 9f477ff0546..523d4e029bb 100644
|
|
--- a/util/grub-mkconfig.in
|
|
+++ b/util/grub-mkconfig.in
|
|
@@ -287,7 +287,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
|
|
|