Commit 33d918b8 authored by Vladimir 'phcoder' Serbinenko's avatar Vladimir 'phcoder' Serbinenko
Browse files

* util/grub-install.in: Fix an automatic target detection bug.

parent c6ca973d
2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-install.in: Fix an automatic target detection bug.
2012-04-18 Vladimir Serbinenko <phcoder@gmail.com> 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
   
* util/grub-install.in: New option --efi-directory. * util/grub-install.in: New option --efi-directory.
...@@ -294,8 +294,10 @@ if [ x$source_dir = x ]; then ...@@ -294,8 +294,10 @@ if [ x$source_dir = x ]; then
esac esac
if [ -d /sys/firmware/efi ]; then if [ -d /sys/firmware/efi ]; then
target="x86_64-efi" target="x86_64-efi"
else
target=i386-pc
fi fi
target=i386-pc;; ;;
x"i"?"86"*) x"i"?"86"*)
# On Linux, we need the efivars kernel modules. # On Linux, we need the efivars kernel modules.
# If no EFI is available this module just does nothing # If no EFI is available this module just does nothing
...@@ -308,11 +310,12 @@ if [ x$source_dir = x ]; then ...@@ -308,11 +310,12 @@ if [ x$source_dir = x ]; then
esac esac
if [ -d /sys/firmware/efi ]; then if [ -d /sys/firmware/efi ]; then
target="i386-efi" target="i386-efi"
fi elif [ -e /proc/device-tree ]; then
if [ -e /proc/device-tree ]; then
target="i386-ieee1275" target="i386-ieee1275"
else
target=i386-pc
fi fi
target=i386-pc;; ;;
*) *)
gettext "Unable to determine your platform. Use --target." ; gettext "Unable to determine your platform. Use --target." ;
echo ;; echo ;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment