a5bd9f6
From c41277eb3f80c1ed4cde9c0536abaa31becba0c5 Mon Sep 17 00:00:00 2001
a5bd9f6
From: Andrey Borzenkov <arvidjaar@gmail.com>
a5bd9f6
Date: Fri, 19 Apr 2013 12:08:46 +0400
a5bd9f6
Subject: [PATCH 324/364] * util/grub.d/30_os-prober.in: Add onstr to linux
a5bd9f6
 entries in one more place.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog                   | 5 +++++
a5bd9f6
 util/grub.d/30_os-prober.in | 2 +-
a5bd9f6
 2 files changed, 6 insertions(+), 1 deletion(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index f1750b0..7450036 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,3 +1,8 @@
a5bd9f6
+2013-04-19  Andrey Borzenkov <arvidjaar@gmail.com>
a5bd9f6
+
a5bd9f6
+	* util/grub.d/30_os-prober.in: Add onstr to linux entries in one
a5bd9f6
+	more place.
a5bd9f6
+
a5bd9f6
 2013-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
 
a5bd9f6
 	Add support for pseries and other bootinfo machines to grub-mkrescue.
a5bd9f6
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
a5bd9f6
index 5500a3c..04f32a1 100644
a5bd9f6
--- a/util/grub.d/30_os-prober.in
a5bd9f6
+++ b/util/grub.d/30_os-prober.in
a5bd9f6
@@ -231,7 +231,7 @@ EOF
a5bd9f6
 	}
a5bd9f6
 EOF
a5bd9f6
 	if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
a5bd9f6
-	    replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
a5bd9f6
+	    replacement_title="$(echo "Advanced options for ${OS} $onstr" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
a5bd9f6
 	    quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
a5bd9f6
 	    title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
a5bd9f6
 	    grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6