Blame SOURCES/0115-Use-linux16-when-appropriate-880840.patch

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