* util/grub-install.in: Follow the symbolic link parameter added

to the file command.
This commit is contained in:
Paulo Flabiano Smorigo 2012-12-10 17:07:01 +01:00 committed by Vladimir 'phcoder' Serbinenko
parent 600d5bdbf5
commit 0f596201dc
2 changed files with 6 additions and 1 deletions

View file

@ -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> 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
* util/grub-install.in: Remove stale TODO. * util/grub-install.in: Remove stale TODO.

View file

@ -748,7 +748,7 @@ elif [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-ieee1275" ]
exit 1 exit 1
fi 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 || { 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 gettext "Failed to copy Grub to the PReP partition." 1>&2
echo 1>&2 echo 1>&2