nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0278-util-grub.d-30_os-prober.in-Add-onstr-to-entries-for.patch

f96e0b
From 9ac4eee966697d77e5e55e02335e6a62c4f85769 Mon Sep 17 00:00:00 2001
f96e0b
From: Andrey Borzenkov <arvidjaar@gmail.com>
f96e0b
Date: Thu, 11 Apr 2013 15:11:14 +0200
f96e0b
Subject: [PATCH 278/482] 	* util/grub.d/30_os-prober.in: Add onstr to
f96e0b
 entries for visual 	distinction.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                   | 5 +++++
f96e0b
 util/grub.d/30_os-prober.in | 4 ++--
f96e0b
 2 files changed, 7 insertions(+), 2 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 602fc9b..bb6d97b 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,8 @@
f96e0b
+2013-04-11  Andrey Borzenkov <arvidjaar@gmail.com>
f96e0b
+
f96e0b
+	* util/grub.d/30_os-prober.in: Add onstr to entries for visual
f96e0b
+	distinction.
f96e0b
+
f96e0b
 2013-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
 	Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
f96e0b
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
f96e0b
index e20d8b3..5500a3c 100644
f96e0b
--- a/util/grub.d/30_os-prober.in
f96e0b
+++ b/util/grub.d/30_os-prober.in
f96e0b
@@ -195,7 +195,7 @@ EOF
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
+menuentry '$(echo "$OS $onstr" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
f96e0b
 EOF
f96e0b
 	    save_default_entry | grub_add_tab
f96e0b
 	    printf '%s\n' "${prepare_boot_cache}"
f96e0b
@@ -210,7 +210,7 @@ EOF
f96e0b
         cat << EOF
f96e0b
 }
f96e0b
 EOF
f96e0b
-	    echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
f96e0b
+	    echo "submenu '$(gettext_printf "Advanced options for %s" "${OS} $onstr" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
f96e0b
 	    is_first_entry=false
f96e0b
 	fi
f96e0b
 	title="${LLABEL} $onstr"
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b