|
|
f96e0b |
From a24ad28eaa52ea635643bf26456d731d18e208d5 Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Peter Jones <pjones@redhat.com>
|
|
|
f96e0b |
Date: Mon, 16 Jul 2012 18:57:11 -0400
|
|
|
f96e0b |
Subject: [PATCH 448/482] Use "linuxefi" and "initrdefi" where appropriate.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
util/grub.d/10_linux.in | 18 ++++++++++++++++--
|
|
|
f96e0b |
1 file changed, 16 insertions(+), 2 deletions(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
|
|
f96e0b |
index 368f609..4807d84 100644
|
|
|
f96e0b |
--- a/util/grub.d/10_linux.in
|
|
|
f96e0b |
+++ b/util/grub.d/10_linux.in
|
|
|
f96e0b |
@@ -133,17 +133,31 @@ linux_entry ()
|
|
|
f96e0b |
printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
message="$(gettext_printf "Loading Linux %s ..." ${version})"
|
|
|
f96e0b |
- sed "s/^/$submenu_indentation/" << EOF
|
|
|
f96e0b |
+ if [ -d /sys/firmware/efi ]; then
|
|
|
f96e0b |
+ sed "s/^/$submenu_indentation/" << EOF
|
|
|
f96e0b |
+ echo '$(echo "$message" | grub_quote)'
|
|
|
f96e0b |
+ linuxefi ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
|
|
|
f96e0b |
+EOF
|
|
|
f96e0b |
+ else
|
|
|
f96e0b |
+ sed "s/^/$submenu_indentation/" << EOF
|
|
|
f96e0b |
echo '$(echo "$message" | grub_quote)'
|
|
|
f96e0b |
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
+ fi
|
|
|
f96e0b |
if test -n "${initrd}" ; then
|
|
|
f96e0b |
# TRANSLATORS: ramdisk isn't identifier. Should be translated.
|
|
|
f96e0b |
message="$(gettext_printf "Loading initial ramdisk ...")"
|
|
|
f96e0b |
- sed "s/^/$submenu_indentation/" << EOF
|
|
|
f96e0b |
+ if [ -d /sys/firmware/efi ]; then
|
|
|
f96e0b |
+ sed "s/^/$submenu_indentation/" << EOF
|
|
|
f96e0b |
echo '$(echo "$message" | grub_quote)'
|
|
|
f96e0b |
+ initrdefi ${rel_dirname}/${initrd}
|
|
|
f96e0b |
+EOF
|
|
|
f96e0b |
+ else
|
|
|
f96e0b |
+ sed "s/^/$submenu_indentation/" << EOF
|
|
|
f96e0b |
+ echo '$message'
|
|
|
f96e0b |
initrd ${rel_dirname}/${initrd}
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
+ fi
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
sed "s/^/$submenu_indentation/" << EOF
|
|
|
f96e0b |
}
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|