2016-05-31 19:45:31 +00:00
|
|
|
From aedb9655a10717fe3678a9e2fc720b55f5b0ffbc Mon Sep 17 00:00:00 2001
|
2014-01-06 16:39:16 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Mon, 28 Oct 2013 10:05:07 -0400
|
2016-06-10 18:22:46 +00:00
|
|
|
Subject: [PATCH 36/83] Use linux16 when appropriate (#880840)
|
2014-01-06 16:39:16 +00:00
|
|
|
|
|
|
|
The kernel group really would prefer that we use the 16 bit entry point
|
|
|
|
on x86 bios machines.
|
|
|
|
|
|
|
|
Resolves: rhbz#880840
|
|
|
|
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
|
---
|
|
|
|
util/grub.d/10_linux.in | 9 +++++++--
|
|
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
2016-03-07 19:10:17 +00:00
|
|
|
index a3d9711..f3bf6ac 100644
|
2014-01-06 16:39:16 +00:00
|
|
|
--- a/util/grub.d/10_linux.in
|
|
|
|
+++ b/util/grub.d/10_linux.in
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -76,6 +76,11 @@ linux_entry ()
|
2014-01-06 16:39:16 +00:00
|
|
|
type="$3"
|
|
|
|
args="$4"
|
|
|
|
|
2014-01-07 15:02:18 +00:00
|
|
|
+ sixteenbit=""
|
2014-01-06 16:39:16 +00:00
|
|
|
+ case "$machine" in
|
2014-01-07 15:02:18 +00:00
|
|
|
+ i?86|x86_64) sixteenbit="16" ;;
|
2014-01-06 16:39:16 +00:00
|
|
|
+ esac
|
|
|
|
+
|
|
|
|
if [ -z "$boot_device_id" ]; then
|
|
|
|
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
|
|
|
|
fi
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -134,7 +139,7 @@ linux_entry ()
|
2014-01-06 16:39:16 +00:00
|
|
|
EOF
|
|
|
|
else
|
|
|
|
sed "s/^/$submenu_indentation/" << EOF
|
|
|
|
- linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
|
2014-01-07 15:02:18 +00:00
|
|
|
+ linux${sixteenbit} ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
|
2014-01-06 16:39:16 +00:00
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
if test -n "${initrd}" ; then
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -144,7 +149,7 @@ EOF
|
2014-01-06 16:39:16 +00:00
|
|
|
EOF
|
|
|
|
else
|
|
|
|
sed "s/^/$submenu_indentation/" << EOF
|
|
|
|
- initrd ${rel_dirname}/${initrd}
|
2014-01-07 15:02:18 +00:00
|
|
|
+ initrd${sixteenbit} ${rel_dirname}/${initrd}
|
2014-01-06 16:39:16 +00:00
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
--
|
2016-05-31 19:45:31 +00:00
|
|
|
2.7.4
|
2014-01-06 16:39:16 +00:00
|
|
|
|