2013-06-07 18:03:56 +00:00
|
|
|
From 421249fda0ae1b6138ccf14b34fa4c58fd3296d4 Mon Sep 17 00:00:00 2001
|
2012-11-27 20:08:53 +00:00
|
|
|
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
|
2013-05-02 20:54:52 +00:00
|
|
|
Date: Mon, 10 Dec 2012 17:07:01 +0100
|
2013-06-12 19:24:37 +00:00
|
|
|
Subject: [PATCH 066/482] * util/grub-install.in: Follow the symbolic
|
2013-05-02 20:54:52 +00:00
|
|
|
link parameter added to the file command.
|
2012-11-27 20:08:53 +00:00
|
|
|
|
|
|
|
---
|
2013-05-02 20:54:52 +00:00
|
|
|
ChangeLog | 5 +++++
|
|
|
|
util/grub-install.in | 2 +-
|
|
|
|
2 files changed, 6 insertions(+), 1 deletion(-)
|
2012-11-27 20:08:53 +00:00
|
|
|
|
2013-05-02 20:54:52 +00:00
|
|
|
diff --git a/ChangeLog b/ChangeLog
|
|
|
|
index 0b57abf..e522078 100644
|
|
|
|
--- a/ChangeLog
|
|
|
|
+++ b/ChangeLog
|
|
|
|
@@ -1,3 +1,8 @@
|
|
|
|
+2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
|
|
|
|
+
|
|
|
|
+ * util/grub-install.in: Follow the symbolic link parameter added
|
|
|
|
+ to the file command.
|
|
|
|
+
|
|
|
|
2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
|
|
|
|
|
* util/grub-install.in: Remove stale TODO.
|
2012-11-27 20:08:53 +00:00
|
|
|
diff --git a/util/grub-install.in b/util/grub-install.in
|
2013-05-02 20:54:52 +00:00
|
|
|
index a2cf07a..9dc4e0b 100644
|
2012-11-27 20:08:53 +00:00
|
|
|
--- a/util/grub-install.in
|
|
|
|
+++ b/util/grub-install.in
|
2013-05-02 20:54:52 +00:00
|
|
|
@@ -748,7 +748,7 @@ elif [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-ieee1275" ]
|
2012-11-27 20:08:53 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
- if [ "$(file -s "${install_device}" -b | awk '{ print $1 }')" = ELF ] || [ x$("${grub_probe}" -m "${device_map}" -d "${install_device}" -t zero_check) = xtrue ]; then
|
|
|
|
+ if [ "$(file -s -b -L "${install_device}" | awk '{ print $1 }')" = ELF ] || [ x$("${grub_probe}" -m "${device_map}" -d "${install_device}" -t zero_check) = xtrue ]; then
|
|
|
|
dd if="${grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform/core.${imgext}" of="${install_device}" status=noxfer || {
|
|
|
|
gettext "Failed to copy Grub to the PReP partition." 1>&2
|
|
|
|
echo 1>&2
|
|
|
|
--
|
2013-06-07 18:03:56 +00:00
|
|
|
1.8.2.1
|
2012-11-27 20:08:53 +00:00
|
|
|
|