nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0141-util-grub-reboot.in-usage-Document-the-need-for.patch

f96e0b
From 6066d6ec61ebed7aeded9b412dfc541ba5ae2827 Mon Sep 17 00:00:00 2001
f96e0b
From: Colin Watson <cjwatson@ubuntu.com>
f96e0b
Date: Tue, 22 Jan 2013 14:28:32 +0000
f96e0b
Subject: [PATCH 141/482] * util/grub-reboot.in (usage): Document the need for
f96e0b
 GRUB_DEFAULT=saved. * util/grub-set-default.in (usage): Likewise. Reported
f96e0b
 by: Brian Candler.  Fixes Ubuntu bug #1102925.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                | 7 +++++++
f96e0b
 util/grub-reboot.in      | 2 ++
f96e0b
 util/grub-set-default.in | 2 ++
f96e0b
 3 files changed, 11 insertions(+)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index f3a9fa0..8c4d087 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,10 @@
f96e0b
+2013-01-22  Colin Watson  <cjwatson@ubuntu.com>
f96e0b
+
f96e0b
+	* util/grub-reboot.in (usage): Document the need for
f96e0b
+	GRUB_DEFAULT=saved.
f96e0b
+	* util/grub-set-default.in (usage): Likewise.
f96e0b
+	Reported by: Brian Candler.  Fixes Ubuntu bug #1102925.
f96e0b
+
f96e0b
 2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
 	* grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
f96e0b
diff --git a/util/grub-reboot.in b/util/grub-reboot.in
f96e0b
index 7516a03..1a91d36 100644
f96e0b
--- a/util/grub-reboot.in
f96e0b
+++ b/util/grub-reboot.in
f96e0b
@@ -20,6 +20,7 @@
f96e0b
 prefix=@prefix@
f96e0b
 exec_prefix=@exec_prefix@
f96e0b
 bindir=@bindir@
f96e0b
+sysconfdir="@sysconfdir@"
f96e0b
 PACKAGE_NAME=@PACKAGE_NAME@
f96e0b
 PACKAGE_VERSION=@PACKAGE_VERSION@
f96e0b
 datarootdir="@datarootdir@"
f96e0b
@@ -45,6 +46,7 @@ export TEXTDOMAINDIR="@localedir@"
f96e0b
 usage () {
f96e0b
     gettext_printf "Usage: %s [OPTION] MENU_ENTRY\n" "$self"
f96e0b
     gettext "Set the default boot menu entry for GRUB, for the next boot only."; echo
f96e0b
+    gettext_printf "This requires setting GRUB_DEFAULT=saved in %s/default/grub.\n" "$sysconfdir"
f96e0b
     echo
f96e0b
     print_option_help "-h, --help" "$(gettext "print this message and exit")"
f96e0b
     print_option_help "-v, --version" "$(gettext "print the version information and exit")"
f96e0b
diff --git a/util/grub-set-default.in b/util/grub-set-default.in
f96e0b
index 443e56f..ea18da1 100644
f96e0b
--- a/util/grub-set-default.in
f96e0b
+++ b/util/grub-set-default.in
f96e0b
@@ -20,6 +20,7 @@
f96e0b
 prefix=@prefix@
f96e0b
 exec_prefix=@exec_prefix@
f96e0b
 bindir=@bindir@
f96e0b
+sysconfdir="@sysconfdir@"
f96e0b
 PACKAGE_NAME=@PACKAGE_NAME@
f96e0b
 PACKAGE_VERSION=@PACKAGE_VERSION@
f96e0b
 datarootdir="@datarootdir@"
f96e0b
@@ -45,6 +46,7 @@ export TEXTDOMAINDIR="@localedir@"
f96e0b
 usage () {
f96e0b
     gettext_printf "Usage: %s [OPTION] MENU_ENTRY\n" "$self"
f96e0b
     gettext "Set the default boot menu entry for GRUB."; echo
f96e0b
+    gettext_printf "This requires setting GRUB_DEFAULT=saved in %s/default/grub.\n" "$sysconfdir"
f96e0b
     echo
f96e0b
     print_option_help "-h, --help" "$(gettext "print this message and exit")"
f96e0b
     print_option_help "-v, --version" "$(gettext "print the version information and exit")"
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b