mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 07:39:22 +00:00
* util/grub-install.in: Fix an automatic target detection bug.
This commit is contained in:
1 parent
c6ca973d4b
commit
33d918b85f
2 files changed
+11
-4
No files matched your search
@@ -294,8 +294,10 @@ if [ x$source_dir = x ]; then
|
||||
esac
|
||||
if [ -d /sys/firmware/efi ]; then
|
||||
target="x86_64-efi"
|
||||
else
|
||||
target=i386-pc
|
||||
fi
|
||||
target=i386-pc;;
|
||||
;;
|
||||
x"i"?"86"*)
|
||||
# On Linux, we need the efivars kernel modules.
|
||||
# If no EFI is available this module just does nothing
|
||||
@@ -308,11 +310,12 @@ if [ x$source_dir = x ]; then
|
||||
esac
|
||||
if [ -d /sys/firmware/efi ]; then
|
||||
target="i386-efi"
|
||||
fi
|
||||
if [ -e /proc/device-tree ]; then
|
||||
elif [ -e /proc/device-tree ]; then
|
||||
target="i386-ieee1275"
|
||||
else
|
||||
target=i386-pc
|
||||
fi
|
||||
target=i386-pc;;
|
||||
;;
|
||||
*)
|
||||
gettext "Unable to determine your platform. Use --target." ;
|
||||
echo ;;
|
||||
|
||||
Reference in new issue
Block a user