a5bd9f
From 28e8ed1fc8a89e3d4c71be6b27166b26b4e61570 Mon Sep 17 00:00:00 2001
5e0db2
From: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a5bd9f
Date: Mon, 10 Dec 2012 17:07:01 +0100
a5bd9f
Subject: [PATCH 065/364] 	* util/grub-install.in: Follow the symbolic
a5bd9f
 link parameter added 	to the file command.
5e0db2
5e0db2
---
a5bd9f
 ChangeLog            | 5 +++++
a5bd9f
 util/grub-install.in | 2 +-
a5bd9f
 2 files changed, 6 insertions(+), 1 deletion(-)
5e0db2
a5bd9f
diff --git a/ChangeLog b/ChangeLog
a5bd9f
index 0b57abf..e522078 100644
a5bd9f
--- a/ChangeLog
a5bd9f
+++ b/ChangeLog
a5bd9f
@@ -1,3 +1,8 @@
a5bd9f
+2012-12-10  Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a5bd9f
+
a5bd9f
+	* util/grub-install.in: Follow the symbolic link parameter added
a5bd9f
+	to the file command.
a5bd9f
+
a5bd9f
 2012-12-10  Andrey Borzenkov <arvidjaar@gmail.com>
a5bd9f
 
a5bd9f
 	* util/grub-install.in: Remove stale TODO.
5e0db2
diff --git a/util/grub-install.in b/util/grub-install.in
a5bd9f
index a2cf07a..9dc4e0b 100644
5e0db2
--- a/util/grub-install.in
5e0db2
+++ b/util/grub-install.in
a5bd9f
@@ -748,7 +748,7 @@ elif [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-ieee1275" ]
5e0db2
 	       exit 1
5e0db2
         fi
5e0db2
 
5e0db2
-        if [ "$(file -s "${install_device}" -b | awk '{ print $1 }')" = ELF ] || [ x$("${grub_probe}" -m "${device_map}" -d "${install_device}" -t zero_check) = xtrue ]; then
5e0db2
+        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
5e0db2
 	        dd if="${grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform/core.${imgext}" of="${install_device}" status=noxfer || {
5e0db2
 	        gettext "Failed to copy Grub to the PReP partition." 1>&2
5e0db2
 	            echo 1>&2
5e0db2
-- 
a5bd9f
1.8.1.4
5e0db2