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