nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0192-Make-grub-set-password-be-named-like-all-the-other-g.patch

8631a2
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8631a2
From: Peter Jones <pjones@redhat.com>
8631a2
Date: Sat, 23 Jun 2018 13:19:15 -0400
8631a2
Subject: [PATCH] Make grub-set-password be named like all the other grub
8631a2
 utilities
8631a2
8631a2
Signed-off-by: Peter Jones <pjones@redhat.com>
8631a2
---
8631a2
 configure.ac                                       | 2 +-
8631a2
 Makefile.util.def                                  | 4 ++--
8631a2
 .gitignore                                         | 4 ++--
8631a2
 util/{grub-setpassword.8 => grub-set-password.8}   | 8 ++++----
8631a2
 util/{grub-setpassword.in => grub-set-password.in} | 0
8631a2
 5 files changed, 9 insertions(+), 9 deletions(-)
8631a2
 rename util/{grub-setpassword.8 => grub-set-password.8} (50%)
8631a2
 rename util/{grub-setpassword.in => grub-set-password.in} (100%)
8631a2
8631a2
diff --git a/configure.ac b/configure.ac
09e3cc
index 359cac3c2..5f47a9265 100644
8631a2
--- a/configure.ac
8631a2
+++ b/configure.ac
8631a2
@@ -66,7 +66,7 @@ grub_TRANSFORM([grub-mkrelpath])
8631a2
 grub_TRANSFORM([grub-mkrescue])
8631a2
 grub_TRANSFORM([grub-probe])
8631a2
 grub_TRANSFORM([grub-reboot])
8631a2
-grub_TRANSFORM([grub-setpassword])
8631a2
+grub_TRANSFORM([grub-set-password])
8631a2
 grub_TRANSFORM([grub-rpm-sort])
8631a2
 grub_TRANSFORM([grub-script-check])
8631a2
 grub_TRANSFORM([grub-set-default])
8631a2
diff --git a/Makefile.util.def b/Makefile.util.def
09e3cc
index 5da553932..97cd8bdeb 100644
8631a2
--- a/Makefile.util.def
8631a2
+++ b/Makefile.util.def
8631a2
@@ -756,8 +756,8 @@ script = {
8631a2
 };
8631a2
 
8631a2
 script = {
8631a2
-  name = grub-setpassword;
8631a2
-  common = util/grub-setpassword.in;
8631a2
+  name = grub-set-password;
8631a2
+  common = util/grub-set-password.in;
8631a2
   mansection = 8;
8631a2
   installdir = sbin;
8631a2
 };
8631a2
diff --git a/.gitignore b/.gitignore
09e3cc
index 424755921..7aaae594d 100644
8631a2
--- a/.gitignore
8631a2
+++ b/.gitignore
09e3cc
@@ -113,8 +113,8 @@ grub-*.tar.*
09e3cc
 /grub*-script-check.1
8631a2
 /grub*-set-default
8631a2
 /grub*-set-default.8
8631a2
-/grub*-setsetpassword
8631a2
-/grub*-setsetpassword.8
8631a2
+/grub*-set-password
8631a2
+/grub*-set-password.8
8631a2
 /grub*-shell
8631a2
 /grub*-shell-tester
8631a2
 /grub*-sparc64-setup
8631a2
diff --git a/util/grub-setpassword.8 b/util/grub-set-password.8
8631a2
similarity index 50%
8631a2
rename from util/grub-setpassword.8
8631a2
rename to util/grub-set-password.8
09e3cc
index dc91dd669..9646546e4 100644
8631a2
--- a/util/grub-setpassword.8
8631a2
+++ b/util/grub-set-password.8
8631a2
@@ -1,12 +1,12 @@
8631a2
-.TH GRUB-SETPASSWORD 3 "Thu Jun 25 2015"
8631a2
+.TH GRUB-SET-PASSWORD 3 "Thu Jun 25 2015"
8631a2
 .SH NAME
8631a2
-\fBgrub-setpassword\fR \(em Generate the user.cfg file containing the hashed grub bootloader password.
8631a2
+\fBgrub-set-password\fR \(em Generate the user.cfg file containing the hashed grub bootloader password.
8631a2
 
8631a2
 .SH SYNOPSIS
8631a2
-\fBgrub-setpassword\fR [OPTION]
8631a2
+\fBgrub-set-password\fR [OPTION]
8631a2
 
8631a2
 .SH DESCRIPTION
8631a2
-\fBgrub-setpassword\fR outputs the user.cfg file which contains the hashed GRUB bootloader password. This utility only supports configurations where there is a single root user.
8631a2
+\fBgrub-set-password\fR outputs the user.cfg file which contains the hashed GRUB bootloader password. This utility only supports configurations where there is a single root user.
8631a2
 
8631a2
 The file has the format:
8631a2
 GRUB2_PASSWORD=<\fIhashed password\fR>.
8631a2
diff --git a/util/grub-setpassword.in b/util/grub-set-password.in
8631a2
similarity index 100%
8631a2
rename from util/grub-setpassword.in
8631a2
rename to util/grub-set-password.in