6f1e3d5
From 2166377a018bc26bc565fecf76d31057a3533603 Mon Sep 17 00:00:00 2001
9d15b4d
From: Robert Marshall <rmarshall@redhat.com>
9d15b4d
Date: Tue, 26 Jan 2016 10:28:35 -0500
6f1e3d5
Subject: [PATCH 139/198] Clean up grub-setpassword documentation (#1290799)
9d15b4d
9d15b4d
The output for --help had some errors. Corrected those and polished the
9d15b4d
text to be a little easier to follow. Carried verbage over to man page
9d15b4d
to maintain internal consistency.
9d15b4d
9d15b4d
Resolves: rhbz#1290799
9d15b4d
---
9d15b4d
 util/grub-setpassword.8  |  2 +-
9d15b4d
 util/grub-setpassword.in | 15 +++++++--------
9d15b4d
 2 files changed, 8 insertions(+), 9 deletions(-)
9d15b4d
9d15b4d
diff --git a/util/grub-setpassword.8 b/util/grub-setpassword.8
bc092b9
index 49200a848..dc91dd669 100644
9d15b4d
--- a/util/grub-setpassword.8
9d15b4d
+++ b/util/grub-setpassword.8
9d15b4d
@@ -19,7 +19,7 @@ Display program usage and exit.
9d15b4d
 -v, --version
9d15b4d
 Display the current version.
9d15b4d
 .TP
9d15b4d
--o, --output[=\fIDIRECTORY PATH\fR]
9d15b4d
+-o, --output=<\fIDIRECTORY\fR>
9d15b4d
 Choose the file path to which user.cfg will be written.
9d15b4d
 
9d15b4d
 .SH SEE ALSO
9d15b4d
diff --git a/util/grub-setpassword.in b/util/grub-setpassword.in
bc092b9
index fb9d3a3b6..c8c0fa419 100644
9d15b4d
--- a/util/grub-setpassword.in
9d15b4d
+++ b/util/grub-setpassword.in
9d15b4d
@@ -16,15 +16,14 @@ grub_mkpasswd="${bindir}/@grub_mkpasswd_pbkdf2@"
9d15b4d
 # Print the usage.
9d15b4d
 usage () {
9d15b4d
     cat <
9d15b4d
-Usage: $0 [OPTION] [SOURCE]
9d15b4d
-Run GRUB script in a Qemu instance.
9d15b4d
-
9d15b4d
-  -h, --help              print this message and exit
9d15b4d
-  -v, --version           print the version information and exit
9d15b4d
-  -o, --output_path       choose a custom output path for user.cfg
9d15b4d
-
9d15b4d
+Usage: $0 [OPTION]
9d15b4d
 $0 prompts the user to set a password on the grub bootloader. The password
9d15b4d
-is written to a file named user.cfg.
9d15b4d
+is written to a file named user.cfg which lives in the GRUB directory
9d15b4d
+located by default at ${grubdir}.
9d15b4d
+
9d15b4d
+  -h, --help                     print this message and exit
9d15b4d
+  -v, --version                  print the version information and exit
9d15b4d
+  -o, --output_path <DIRECTORY>  put user.cfg in a user-selected directory
9d15b4d
 
9d15b4d
 Report bugs at https://bugzilla.redhat.com.
9d15b4d
 EOF
9d15b4d
-- 
da63b36
2.14.3
9d15b4d