|
|
f96e0b |
From f46ac5e6c44d2fed8dcd8451196e6141d89cd90d Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Tue, 18 Sep 2012 13:04:06 +0200
|
|
|
f96e0b |
Subject: [PATCH 042/482] * util/grub-mkconfig_lib.in (grub_tab): New
|
|
|
f96e0b |
variable. (grub_add_tab): New function. * util/grub.d/10_hurd.in:
|
|
|
f96e0b |
Replace \t with $grub_tab orgrub_add_tab. * util/grub.d/10_illumos.in:
|
|
|
f96e0b |
Likewise. * util/grub.d/10_kfreebsd.in: Likewise. *
|
|
|
f96e0b |
util/grub.d/10_linux.in: Likewise. * util/grub.d/10_netbsd.in: Likewise.
|
|
|
f96e0b |
* util/grub.d/10_windows.in: Likewise. * util/grub.d/10_xnu.in:
|
|
|
f96e0b |
Likewise. * util/grub.d/20_linux_xen.in: Likewise. *
|
|
|
f96e0b |
util/grub.d/30_os-prober.in: Likewise.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 14 ++++++++++++++
|
|
|
f96e0b |
util/grub-mkconfig_lib.in | 7 +++++++
|
|
|
f96e0b |
util/grub.d/10_hurd.in | 8 ++++----
|
|
|
f96e0b |
util/grub.d/10_illumos.in | 4 ++--
|
|
|
f96e0b |
util/grub.d/10_kfreebsd.in | 8 ++++----
|
|
|
f96e0b |
util/grub.d/10_linux.in | 8 ++++----
|
|
|
f96e0b |
util/grub.d/10_netbsd.in | 10 +++++-----
|
|
|
f96e0b |
util/grub.d/10_windows.in | 6 +++---
|
|
|
f96e0b |
util/grub.d/10_xnu.in | 4 ++--
|
|
|
f96e0b |
util/grub.d/20_linux_xen.in | 6 +++---
|
|
|
f96e0b |
util/grub.d/30_os-prober.in | 20 ++++++++++----------
|
|
|
f96e0b |
11 files changed, 58 insertions(+), 37 deletions(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index 3752a79..32849c6 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,5 +1,19 @@
|
|
|
f96e0b |
2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
+ * util/grub-mkconfig_lib.in (grub_tab): New variable.
|
|
|
f96e0b |
+ (grub_add_tab): New function.
|
|
|
f96e0b |
+ * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
|
|
|
f96e0b |
+ * util/grub.d/10_illumos.in: Likewise.
|
|
|
f96e0b |
+ * util/grub.d/10_kfreebsd.in: Likewise.
|
|
|
f96e0b |
+ * util/grub.d/10_linux.in: Likewise.
|
|
|
f96e0b |
+ * util/grub.d/10_netbsd.in: Likewise.
|
|
|
f96e0b |
+ * util/grub.d/10_windows.in: Likewise.
|
|
|
f96e0b |
+ * util/grub.d/10_xnu.in: Likewise.
|
|
|
f96e0b |
+ * util/grub.d/20_linux_xen.in: Likewise.
|
|
|
f96e0b |
+ * util/grub.d/30_os-prober.in: Likewise.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
|
|
|
f96e0b |
GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
|
|
|
f96e0b |
* grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
|
|
|
f96e0b |
diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in
|
|
|
f96e0b |
index a9f5809..8f21eb2 100644
|
|
|
f96e0b |
--- a/util/grub-mkconfig_lib.in
|
|
|
f96e0b |
+++ b/util/grub-mkconfig_lib.in
|
|
|
f96e0b |
@@ -347,3 +347,10 @@ grub_fmt () {
|
|
|
f96e0b |
cat
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
}
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+grub_tab=" "
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+grub_add_tab () {
|
|
|
f96e0b |
+ sed -e "s/^/$grub_tab/"
|
|
|
f96e0b |
+}
|
|
|
f96e0b |
+
|
|
|
f96e0b |
diff --git a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in
|
|
|
f96e0b |
index 45f0ad3..00efd68 100644
|
|
|
f96e0b |
--- a/util/grub.d/10_hurd.in
|
|
|
f96e0b |
+++ b/util/grub.d/10_hurd.in
|
|
|
f96e0b |
@@ -108,7 +108,7 @@ menuentry '$(echo "$OS" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnuhurd-s
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
- prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | sed -e "s/^/\t/"|sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
+ prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | grub_add_tab|sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
message="$(gettext_printf "Loading GNU Mach ...")"
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ x$type = xrecovery ] ; then
|
|
|
f96e0b |
@@ -122,9 +122,9 @@ EOF
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ x$type != xrecovery ] ; then
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/\t/"| sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
+ save_default_entry | grub_add_tab| sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
- prepare_grub_to_access_device "${GRUB_DEVICE}" | sed -e "s/^/\t/"| sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
+ prepare_grub_to_access_device "${GRUB_DEVICE}" | grub_add_tab| sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
message="$(gettext_printf "Loading the Hurd ...")"
|
|
|
f96e0b |
if [ x$type = xrecovery ] ; then
|
|
|
f96e0b |
opts=
|
|
|
f96e0b |
@@ -158,7 +158,7 @@ do
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ "x$is_first_entry" = xtrue ]; then
|
|
|
f96e0b |
hurd_entry "$kernel" simple
|
|
|
f96e0b |
- submenu_indentation="\t"
|
|
|
f96e0b |
+ submenu_indentation="$grub_tab"
|
|
|
f96e0b |
|
|
|
f96e0b |
# TRANSLATORS: %s is replaced with an OS name
|
|
|
f96e0b |
echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnuhurd-advanced-$(grub_get_device_id "${GRUB_DEVICE_BOOT}")' {"
|
|
|
f96e0b |
diff --git a/util/grub.d/10_illumos.in b/util/grub.d/10_illumos.in
|
|
|
f96e0b |
index 2477466..0de616e 100644
|
|
|
f96e0b |
--- a/util/grub.d/10_illumos.in
|
|
|
f96e0b |
+++ b/util/grub.d/10_illumos.in
|
|
|
f96e0b |
@@ -35,8 +35,8 @@ case "${GRUB_DISTRIBUTOR}" in
|
|
|
f96e0b |
esac
|
|
|
f96e0b |
|
|
|
f96e0b |
echo "menuentry '$(echo "$OS" | grub_quote)' ${CLASS} \$menuentry_id_option 'illumos-$(grub_get_device_id "${GRUB_DEVICE_BOOT}")' {"
|
|
|
f96e0b |
-save_default_entry | sed -e "s/^/\t/"
|
|
|
f96e0b |
-prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | sed -e "s/^/\t/"
|
|
|
f96e0b |
+save_default_entry | grub_add_tab
|
|
|
f96e0b |
+prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | grub_add_tab
|
|
|
f96e0b |
message="$(gettext_printf "Loading kernel of Illumos ...")"
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
insmod gzio
|
|
|
f96e0b |
diff --git a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in
|
|
|
f96e0b |
index b0e84e2..260dda8 100644
|
|
|
f96e0b |
--- a/util/grub.d/10_kfreebsd.in
|
|
|
f96e0b |
+++ b/util/grub.d/10_kfreebsd.in
|
|
|
f96e0b |
@@ -54,7 +54,7 @@ load_kfreebsd_module ()
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ -z "${prepare_module_dir_cache}" ]; then
|
|
|
f96e0b |
- prepare_module_dir_cache="$(prepare_grub_to_access_device $(grub-probe -t device "${module_dir}") | sed -e "s/^/\t/")"
|
|
|
f96e0b |
+ prepare_module_dir_cache="$(prepare_grub_to_access_device $(grub-probe -t device "${module_dir}") | grub_add_tab)"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
printf '%s\n' "${prepare_module_dir_cache}"
|
|
|
f96e0b |
@@ -91,10 +91,10 @@ kfreebsd_entry ()
|
|
|
f96e0b |
echo "menuentry '$(echo "$OS" | grub_quote)' ${CLASS} \$menuentry_id_option 'kfreebsd-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
if [ x$type != xrecovery ] ; then
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/\t/" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
+ save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
if [ -z "${prepare_boot_cache}" ]; then
|
|
|
f96e0b |
- prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
|
|
|
f96e0b |
+ prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
@@ -213,7 +213,7 @@ while [ "x$list" != "x" ] ; do
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ "x$is_first_entry" = xtrue ]; then
|
|
|
f96e0b |
kfreebsd_entry "${OS}" "${version}" simple
|
|
|
f96e0b |
- submenu_indentation="\t"
|
|
|
f96e0b |
+ submenu_indentation="$grub_tab"
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ -z "$boot_device_id" ]; then
|
|
|
f96e0b |
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
|
|
|
f96e0b |
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
|
|
f96e0b |
index 35f7a83..0724e16 100644
|
|
|
f96e0b |
--- a/util/grub.d/10_linux.in
|
|
|
f96e0b |
+++ b/util/grub.d/10_linux.in
|
|
|
f96e0b |
@@ -101,7 +101,7 @@ linux_entry ()
|
|
|
f96e0b |
echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
if [ x$type != xrecovery ] ; then
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/\t/"
|
|
|
f96e0b |
+ save_default_entry | grub_add_tab
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
# Use ELILO's generic "efifb" when it's known to be available.
|
|
|
f96e0b |
@@ -123,12 +123,12 @@ linux_entry ()
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ x$dirname = x/ ]; then
|
|
|
f96e0b |
if [ -z "${prepare_root_cache}" ]; then
|
|
|
f96e0b |
- prepare_root_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE} | sed -e "s/^/\t/")"
|
|
|
f96e0b |
+ prepare_root_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE} | grub_add_tab)"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
printf '%s\n' "${prepare_root_cache}" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
else
|
|
|
f96e0b |
if [ -z "${prepare_boot_cache}" ]; then
|
|
|
f96e0b |
- prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
|
|
|
f96e0b |
+ prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
@@ -230,7 +230,7 @@ while [ "x$list" != "x" ] ; do
|
|
|
f96e0b |
linux_entry "${OS}" "${version}" simple \
|
|
|
f96e0b |
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
|
|
f96e0b |
|
|
|
f96e0b |
- submenu_indentation="\t"
|
|
|
f96e0b |
+ submenu_indentation="$grub_tab"
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ -z "$boot_device_id" ]; then
|
|
|
f96e0b |
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
|
|
|
f96e0b |
diff --git a/util/grub.d/10_netbsd.in b/util/grub.d/10_netbsd.in
|
|
|
f96e0b |
index 65275d7..b76332b 100644
|
|
|
f96e0b |
--- a/util/grub.d/10_netbsd.in
|
|
|
f96e0b |
+++ b/util/grub.d/10_netbsd.in
|
|
|
f96e0b |
@@ -77,10 +77,10 @@ netbsd_load_fs_module ()
|
|
|
f96e0b |
prepare_grub_to_access_device $(${grub_probe} -t device "${kmodule}") | sed -e 's,^, ,'
|
|
|
f96e0b |
case "${loader}" in
|
|
|
f96e0b |
knetbsd)
|
|
|
f96e0b |
- printf "\tknetbsd_module_elf %s\n" "${kmodule_rel}"
|
|
|
f96e0b |
+ printf "$grub_tabknetbsd_module_elf %s\n" "${kmodule_rel}"
|
|
|
f96e0b |
;;
|
|
|
f96e0b |
multiboot)
|
|
|
f96e0b |
- printf "\tmodule %s\n" "${kmodule_rel}"
|
|
|
f96e0b |
+ printf "$grub_tabmodule %s\n" "${kmodule_rel}"
|
|
|
f96e0b |
;;
|
|
|
f96e0b |
esac
|
|
|
f96e0b |
}
|
|
|
f96e0b |
@@ -121,11 +121,11 @@ netbsd_entry ()
|
|
|
f96e0b |
printf "%s\n" "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
case "${loader}" in
|
|
|
f96e0b |
knetbsd)
|
|
|
f96e0b |
- printf "\tknetbsd %s -r %s %s\n" \
|
|
|
f96e0b |
+ printf "$grub_tabknetbsd %s -r %s %s\n" \
|
|
|
f96e0b |
"${kernel}" "${kroot_device}" "${GRUB_CMDLINE_NETBSD} ${args}" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
;;
|
|
|
f96e0b |
multiboot)
|
|
|
f96e0b |
- printf "\tmultiboot %s %s root=%s %s\n" \
|
|
|
f96e0b |
+ printf "$grub_tabmultiboot %s %s root=%s %s\n" \
|
|
|
f96e0b |
"${kernel}" "${kernel}" "${kroot_device}" "${GRUB_CMDLINE_NETBSD} ${args}" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
;;
|
|
|
f96e0b |
esac
|
|
|
f96e0b |
@@ -159,7 +159,7 @@ for k in $(ls -t /netbsd*) ; do
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ "x$is_first_entry" = xtrue ]; then
|
|
|
f96e0b |
netbsd_entry "knetbsd" "$k" simple "${GRUB_CMDLINE_NETBSD_DEFAULT}"
|
|
|
f96e0b |
- submenu_indentation="\t"
|
|
|
f96e0b |
+ submenu_indentation="$grub_tab"
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ -z "$boot_device_id" ]; then
|
|
|
f96e0b |
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
|
|
|
f96e0b |
diff --git a/util/grub.d/10_windows.in b/util/grub.d/10_windows.in
|
|
|
f96e0b |
index e5839cd..9025914 100644
|
|
|
f96e0b |
--- a/util/grub.d/10_windows.in
|
|
|
f96e0b |
+++ b/util/grub.d/10_windows.in
|
|
|
f96e0b |
@@ -45,7 +45,7 @@ get_os_name_from_boot_ini ()
|
|
|
f96e0b |
sort | uniq | wc -l`" = 1 || return 1
|
|
|
f96e0b |
|
|
|
f96e0b |
# Search 'default=PARTITION'
|
|
|
f96e0b |
- get_os_name_from_boot_ini_part=`sed -n 's,^default=,,p' "$1" | sed 's,\\\\,/,g;s,[ \t\r]*$,,;1q'`
|
|
|
f96e0b |
+ get_os_name_from_boot_ini_part=`sed -n 's,^default=,,p' "$1" | sed 's,\\\\,/,g;s,[ $grub_tab\r]*$,,;1q'`
|
|
|
f96e0b |
test -n "$get_os_name_from_boot_ini_part" || return 1
|
|
|
f96e0b |
|
|
|
f96e0b |
# Search 'PARTITION="NAME" ...'
|
|
|
f96e0b |
@@ -87,8 +87,8 @@ for drv in $drives ; do
|
|
|
f96e0b |
menuentry '$(echo "$OS" | grub_quote)' \$menuentry_id_option '$osid-$(grub_get_device_id "${dev}")' {
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
|
|
|
f96e0b |
- save_default_entry | sed -e 's,^,\t,'
|
|
|
f96e0b |
- prepare_grub_to_access_device "$dev" | sed 's,^,\t,'
|
|
|
f96e0b |
+ save_default_entry | sed -e 's,^,$grub_tab,'
|
|
|
f96e0b |
+ prepare_grub_to_access_device "$dev" | sed 's,^,$grub_tab,'
|
|
|
f96e0b |
test -z "$needmap" || cat <
|
|
|
f96e0b |
drivemap -s (hd0) \$root
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
diff --git a/util/grub.d/10_xnu.in b/util/grub.d/10_xnu.in
|
|
|
f96e0b |
index 55a9546..4270385 100644
|
|
|
f96e0b |
--- a/util/grub.d/10_xnu.in
|
|
|
f96e0b |
+++ b/util/grub.d/10_xnu.in
|
|
|
f96e0b |
@@ -39,8 +39,8 @@ osx_entry() {
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
menuentry '$(echo "Darwin/Mac OS X $bitstr $onstr" | grub_quote)' --class osx --class darwin --class os \$menuentry_id_option 'osprober-xnu-$2-$(grub_get_device_id "${GRUB_DEVICE}")' {
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/ /"
|
|
|
f96e0b |
- prepare_grub_to_access_device ${GRUB_DEVICE} | sed -e "s/^/ /"
|
|
|
f96e0b |
+ save_default_entry | grub_add_tab
|
|
|
f96e0b |
+ prepare_grub_to_access_device ${GRUB_DEVICE} | grub_add_tab
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
load_video
|
|
|
f96e0b |
set do_resume=0
|
|
|
f96e0b |
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
|
|
|
f96e0b |
index 33f1592..d4d0110 100644
|
|
|
f96e0b |
--- a/util/grub.d/20_linux_xen.in
|
|
|
f96e0b |
+++ b/util/grub.d/20_linux_xen.in
|
|
|
f96e0b |
@@ -110,11 +110,11 @@ linux_entry ()
|
|
|
f96e0b |
echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
if [ x$type != xrecovery ] ; then
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/\t/" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
+ save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ -z "${prepare_boot_cache}" ]; then
|
|
|
f96e0b |
- prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
|
|
|
f96e0b |
+ prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
|
|
|
f96e0b |
xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
|
|
|
f96e0b |
@@ -236,7 +236,7 @@ while [ "x${xen_list}" != "x" ] ; do
|
|
|
f96e0b |
linux_entry "${OS}" "${version}" "${xen_version}" simple \
|
|
|
f96e0b |
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
|
|
|
f96e0b |
|
|
|
f96e0b |
- submenu_indentation="\t\t"
|
|
|
f96e0b |
+ submenu_indentation="$grub_tab$grub_tab"
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ -z "$boot_device_id" ]; then
|
|
|
f96e0b |
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
|
|
|
f96e0b |
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
|
|
|
f96e0b |
index bcc6c25..bf47dc3 100644
|
|
|
f96e0b |
--- a/util/grub.d/30_os-prober.in
|
|
|
f96e0b |
+++ b/util/grub.d/30_os-prober.in
|
|
|
f96e0b |
@@ -54,8 +54,8 @@ osx_entry() {
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
menuentry '$(echo "${LONGNAME} $bitstr $onstr" | grub_quote)' --class osx --class darwin --class os \$menuentry_id_option 'osprober-xnu-$2-$(grub_get_device_id "${DEVICE}")' {
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/\t/"
|
|
|
f96e0b |
- prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
|
|
|
f96e0b |
+ save_default_entry | grub_add_tab
|
|
|
f96e0b |
+ prepare_grub_to_access_device ${DEVICE} | grub_add_tab
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
load_video
|
|
|
f96e0b |
set do_resume=0
|
|
|
f96e0b |
@@ -126,8 +126,8 @@ for OS in ${OSPROBED} ; do
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' --class windows --class os \$menuentry_id_option 'osprober-chain-$(grub_get_device_id "${DEVICE}")' {
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/\t/"
|
|
|
f96e0b |
- prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
|
|
|
f96e0b |
+ save_default_entry | grub_add_tab
|
|
|
f96e0b |
+ prepare_grub_to_access_device ${DEVICE} | grub_add_tab
|
|
|
f96e0b |
|
|
|
f96e0b |
case ${LONGNAME} in
|
|
|
f96e0b |
Windows\ Vista*|Windows\ 7*|Windows\ Server\ 2008*)
|
|
|
f96e0b |
@@ -181,14 +181,14 @@ EOF
|
|
|
f96e0b |
used_osprober_linux_ids="$used_osprober_linux_ids 'osprober-gnulinux-$LKERNEL-${recovery_params}-$counter-$boot_device_id'"
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ -z "${prepare_boot_cache}" ]; then
|
|
|
f96e0b |
- prepare_boot_cache="$(prepare_grub_to_access_device ${LBOOT} | sed -e "s/^/\t/")"
|
|
|
f96e0b |
+ prepare_boot_cache="$(prepare_grub_to_access_device ${LBOOT} | grub_add_tab)"
|
|
|
f96e0b |
fi
|
|
|
f96e0b |
|
|
|
f96e0b |
if [ "x$is_first_entry" = xtrue ]; then
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
menuentry '$(echo "$OS" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/\t/"
|
|
|
f96e0b |
+ save_default_entry | grub_add_tab
|
|
|
f96e0b |
printf '%s\n' "${prepare_boot_cache}"
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
linux ${LKERNEL} ${LPARAMS}
|
|
|
f96e0b |
@@ -208,8 +208,8 @@ EOF
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
menuentry '$(echo "$title" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-$LKERNEL-${recovery_params}-$boot_device_id' {
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/\t\t/"
|
|
|
f96e0b |
- printf '%s\n' "${prepare_boot_cache}" | sed -e "s/^/\t/"
|
|
|
f96e0b |
+ save_default_entry | sed -e "s/^/$grub_tab$grub_tab/"
|
|
|
f96e0b |
+ printf '%s\n' "${prepare_boot_cache}" | grub_add_tab
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
linux ${LKERNEL} ${LPARAMS}
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
@@ -243,8 +243,8 @@ EOF
|
|
|
f96e0b |
cat << EOF
|
|
|
f96e0b |
menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' --class hurd --class gnu --class os \$menuentry_id_option 'osprober-gnuhurd-/boot/gnumach.gz-false-$(grub_get_device_id "${DEVICE}")' {
|
|
|
f96e0b |
EOF
|
|
|
f96e0b |
- save_default_entry | sed -e "s/^/\t/"
|
|
|
f96e0b |
- prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
|
|
|
f96e0b |
+ save_default_entry | grub_add_tab
|
|
|
f96e0b |
+ prepare_grub_to_access_device ${DEVICE} | grub_add_tab
|
|
|
f96e0b |
grub_device="`${grub_probe} --device ${DEVICE} --target=drive`"
|
|
|
f96e0b |
mach_device="`echo "${grub_device}" | sed -e 's/(\(hd.*\),msdos\(.*\))/\1s\2/'`"
|
|
|
f96e0b |
grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|