]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-install.in: Fix an automatic target detection bug.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 18 Apr 2012 21:01:51 +0000 (23:01 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 18 Apr 2012 21:01:51 +0000 (23:01 +0200)
ChangeLog
util/grub-install.in

index eec251552c067e52b0a945a57d5e72f0519567d1..23dac4858b11c78ed769b46dea40618712dff84b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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>
 
        * util/grub-install.in: New option --efi-directory.
index 4d47c3c75159e00ddb1f1123d2d244181e586d55..748d39e0a113027e43a3a666bb89f32139f4593b 100644 (file)
@@ -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    ;;