]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-install.in: Follow the symbolic link parameter added
authorPaulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Mon, 10 Dec 2012 16:07:01 +0000 (17:07 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 10 Dec 2012 16:07:01 +0000 (17:07 +0100)
to the file command.

ChangeLog
util/grub-install.in

index 0b57abffdf9ef7ae1b0f7ab30e3a0755fdbf70e8..e5220788dc4f44ab4b3401e488875661b4346bf8 100644 (file)
--- 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.
index a2cf07a7f54d0eb7a64ad4bd984c474439500511..9dc4e0b2abe27cfb47a53c3b71981a35c8ba40be 100644 (file)
@@ -748,7 +748,7 @@ elif [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-ieee1275" ]
               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