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

6b3c76
From d34664a3f98abe6c2828ebe148ef24ea462bfc36 Mon Sep 17 00:00:00 2001
a85e8e
From: Peter Jones <pjones@redhat.com>
a85e8e
Date: Mon, 28 Oct 2013 10:05:07 -0400
6b3c76
Subject: [PATCH 115/261] 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
6b3c76
index e762e1f4e..600bfd29d 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
6b3c76
-- 
6b3c76
2.13.5
6b3c76