Hi all,

For powerpc-ieee1275, if the given install device is a symlink, file cmd will follow the link to know the device type.

--
Paulo Flabiano Smorigo
Software Engineer
Linux Technology Center - IBM Systems & Technology Group
=== modified file 'ChangeLog'
--- ChangeLog	2012-09-26 12:51:13 +0000
+++ ChangeLog	2012-10-02 14:36:55 +0000
@@ -1,3 +1,8 @@
+2012-10-02  Paulo Flabiano Smorigo <pfsmor...@br.ibm.com>
+
+	* util/grub-install.in: Follow the symbolic link parameter added
+	to the file command.
+
 2012-09-26  Colin Watson  <cjwat...@ubuntu.com>
 
 	* Makefile.util.def (grub-mknetdir): Move to $prefix/bin.

=== modified file 'util/grub-install.in'
--- util/grub-install.in	2012-09-24 17:50:35 +0000
+++ util/grub-install.in	2012-10-02 14:33:18 +0000
@@ -750,7 +750,7 @@
 	       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

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to