dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Peter Jones <pjones@redhat.com>
d9d99f
Date: Sat, 23 Jun 2018 13:19:15 -0400
d9d99f
Subject: [PATCH] Make grub-set-password be named like all the other grub
d9d99f
 utilities
d9d99f
d9d99f
Signed-off-by: Peter Jones <pjones@redhat.com>
d9d99f
---
d9d99f
 configure.ac                                       | 2 +-
d9d99f
 Makefile.util.def                                  | 4 ++--
d9d99f
 .gitignore                                         | 4 ++--
d9d99f
 util/{grub-setpassword.8 => grub-set-password.8}   | 8 ++++----
d9d99f
 util/{grub-setpassword.in => grub-set-password.in} | 0
d9d99f
 5 files changed, 9 insertions(+), 9 deletions(-)
d9d99f
 rename util/{grub-setpassword.8 => grub-set-password.8} (50%)
d9d99f
 rename util/{grub-setpassword.in => grub-set-password.in} (100%)
d9d99f
d9d99f
diff --git a/configure.ac b/configure.ac
d9d99f
index 359cac3c26b..5f47a9265f3 100644
d9d99f
--- a/configure.ac
d9d99f
+++ b/configure.ac
d9d99f
@@ -66,7 +66,7 @@ grub_TRANSFORM([grub-mkrelpath])
d9d99f
 grub_TRANSFORM([grub-mkrescue])
d9d99f
 grub_TRANSFORM([grub-probe])
d9d99f
 grub_TRANSFORM([grub-reboot])
d9d99f
-grub_TRANSFORM([grub-setpassword])
d9d99f
+grub_TRANSFORM([grub-set-password])
d9d99f
 grub_TRANSFORM([grub-rpm-sort])
d9d99f
 grub_TRANSFORM([grub-script-check])
d9d99f
 grub_TRANSFORM([grub-set-default])
d9d99f
diff --git a/Makefile.util.def b/Makefile.util.def
d9d99f
index 5da55393291..97cd8bdebd9 100644
d9d99f
--- a/Makefile.util.def
d9d99f
+++ b/Makefile.util.def
d9d99f
@@ -756,8 +756,8 @@ script = {
d9d99f
 };
d9d99f
 
d9d99f
 script = {
d9d99f
-  name = grub-setpassword;
d9d99f
-  common = util/grub-setpassword.in;
d9d99f
+  name = grub-set-password;
d9d99f
+  common = util/grub-set-password.in;
d9d99f
   mansection = 8;
d9d99f
   installdir = sbin;
d9d99f
 };
d9d99f
diff --git a/.gitignore b/.gitignore
d9d99f
index 6c4cfc53781..a999024652e 100644
d9d99f
--- a/.gitignore
d9d99f
+++ b/.gitignore
d9d99f
@@ -115,8 +115,8 @@ grub-*.tar.*
d9d99f
 /grub*-set-bootflag.1
d9d99f
 /grub*-set-default
d9d99f
 /grub*-set-default.8
d9d99f
-/grub*-setsetpassword
d9d99f
-/grub*-setsetpassword.8
d9d99f
+/grub*-set-password
d9d99f
+/grub*-set-password.8
d9d99f
 /grub*-shell
d9d99f
 /grub*-shell-tester
d9d99f
 /grub*-sparc64-setup
d9d99f
diff --git a/util/grub-setpassword.8 b/util/grub-set-password.8
d9d99f
similarity index 50%
d9d99f
rename from util/grub-setpassword.8
d9d99f
rename to util/grub-set-password.8
d9d99f
index dc91dd6697b..9646546e43d 100644
d9d99f
--- a/util/grub-setpassword.8
d9d99f
+++ b/util/grub-set-password.8
d9d99f
@@ -1,12 +1,12 @@
d9d99f
-.TH GRUB-SETPASSWORD 3 "Thu Jun 25 2015"
d9d99f
+.TH GRUB-SET-PASSWORD 3 "Thu Jun 25 2015"
d9d99f
 .SH NAME
d9d99f
-\fBgrub-setpassword\fR \(em Generate the user.cfg file containing the hashed grub bootloader password.
d9d99f
+\fBgrub-set-password\fR \(em Generate the user.cfg file containing the hashed grub bootloader password.
d9d99f
 
d9d99f
 .SH SYNOPSIS
d9d99f
-\fBgrub-setpassword\fR [OPTION]
d9d99f
+\fBgrub-set-password\fR [OPTION]
d9d99f
 
d9d99f
 .SH DESCRIPTION
d9d99f
-\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.
d9d99f
+\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.
d9d99f
 
d9d99f
 The file has the format:
d9d99f
 GRUB2_PASSWORD=<\fIhashed password\fR>.
d9d99f
diff --git a/util/grub-setpassword.in b/util/grub-set-password.in
d9d99f
similarity index 100%
d9d99f
rename from util/grub-setpassword.in
d9d99f
rename to util/grub-set-password.in