011fe81
From ba749818b7a53df63d887cb17497f82c78ca934c Mon Sep 17 00:00:00 2001
481bf3b
From: Peter Jones <pjones@redhat.com>
481bf3b
Date: Mon, 28 Oct 2013 10:05:07 -0400
58fe9aa
Subject: [PATCH 115/152] Use linux16 when appropriate (#880840)
481bf3b
481bf3b
The kernel group really would prefer that we use the 16 bit entry point
481bf3b
on x86 bios machines.
481bf3b
481bf3b
Resolves: rhbz#880840
481bf3b
481bf3b
Signed-off-by: Peter Jones <pjones@redhat.com>
481bf3b
---
481bf3b
 util/grub.d/10_linux.in | 9 +++++++--
481bf3b
 1 file changed, 7 insertions(+), 2 deletions(-)
481bf3b
481bf3b
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
5dc55b7
index e762e1f..600bfd2 100644
481bf3b
--- a/util/grub.d/10_linux.in
481bf3b
+++ b/util/grub.d/10_linux.in
481bf3b
@@ -74,6 +74,11 @@ linux_entry ()
481bf3b
   type="$3"
481bf3b
   args="$4"
481bf3b
 
5dc55b7
+  sixteenbit=""
481bf3b
+  case "$machine" in
5dc55b7
+    i?86|x86_64) sixteenbit="16" ;;
481bf3b
+  esac
481bf3b
+
481bf3b
   if [ -z "$boot_device_id" ]; then
481bf3b
       boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
481bf3b
   fi
481bf3b
@@ -132,7 +137,7 @@ linux_entry ()
481bf3b
 EOF
481bf3b
   else
481bf3b
     sed "s/^/$submenu_indentation/" << EOF
481bf3b
-	linux	${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
5dc55b7
+	linux${sixteenbit} ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
481bf3b
 EOF
481bf3b
   fi
481bf3b
   if test -n "${initrd}" ; then
481bf3b
@@ -142,7 +147,7 @@ EOF
481bf3b
 EOF
481bf3b
     else
481bf3b
       sed "s/^/$submenu_indentation/" << EOF
481bf3b
-	initrd	${rel_dirname}/${initrd}
5dc55b7
+	initrd${sixteenbit} ${rel_dirname}/${initrd}
481bf3b
 EOF
481bf3b
     fi
481bf3b
   fi
481bf3b
-- 
37b39b7
1.9.3
481bf3b