nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0325-util-grub.d-30_os-prober.in-Add-onstr-to-linux-entri.patch

f96e0b
From b29ffe391d012b3a5b2b4d061f14eaea0f9da0ec Mon Sep 17 00:00:00 2001
f96e0b
From: Andrey Borzenkov <arvidjaar@gmail.com>
f96e0b
Date: Fri, 19 Apr 2013 12:08:46 +0400
f96e0b
Subject: [PATCH 325/482] * util/grub.d/30_os-prober.in: Add onstr to linux
f96e0b
 entries in one more place.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                   | 5 +++++
f96e0b
 util/grub.d/30_os-prober.in | 2 +-
f96e0b
 2 files changed, 6 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index f1750b0..7450036 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,8 @@
f96e0b
+2013-04-19  Andrey Borzenkov <arvidjaar@gmail.com>
f96e0b
+
f96e0b
+	* util/grub.d/30_os-prober.in: Add onstr to linux entries in one
f96e0b
+	more place.
f96e0b
+
f96e0b
 2013-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
 	Add support for pseries and other bootinfo machines to grub-mkrescue.
f96e0b
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
f96e0b
index 5500a3c..04f32a1 100644
f96e0b
--- a/util/grub.d/30_os-prober.in
f96e0b
+++ b/util/grub.d/30_os-prober.in
f96e0b
@@ -231,7 +231,7 @@ EOF
f96e0b
 	}
f96e0b
 EOF
f96e0b
 	if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
f96e0b
-	    replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
f96e0b
+	    replacement_title="$(echo "Advanced options for ${OS} $onstr" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
f96e0b
 	    quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
f96e0b
 	    title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
f96e0b
 	    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")"
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b