Include license into grub-set-password util

Resolves: #RHEL-120704
Signed-off-by: Leo Sandoval <lsandova@redhat.com>
This commit is contained in:
Leo Sandoval 2025-11-06 11:32:17 -06:00
parent 763d340eb1
commit f4f7a97672
3 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,35 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Leo Sandoval <lsandova@redhat.com>
Date: Thu, 6 Nov 2025 11:19:16 -0600
Subject: [PATCH] Include license into grub-set-password util
Signed-off-by: Leo Sandoval <lsandova@redhat.com>
---
util/grub-set-password.in | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/util/grub-set-password.in b/util/grub-set-password.in
index d8005e5a14..f6655add7b 100644
--- a/util/grub-set-password.in
+++ b/util/grub-set-password.in
@@ -1,4 +1,20 @@
#!/bin/sh -e
+#
+# Friendly password config tool from GRUB
+# Copyright (C) Free Software Foundation, Inc.
+#
+# GRUB is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# GRUB is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
grubdir=`echo "/@bootdirname@/@grubdirname@" | sed 's,//*,/,g'`

View File

@ -369,3 +369,4 @@ Patch0369: 0369-blscfg-check-if-variable-is-escaped-before-consideri.patch
Patch0370: 0370-Set-correctly-the-memory-attributes-for-the-kernel-P.patch
Patch0371: 0371-script-execute-Don-t-let-trailing-blank-lines-determ.patch
Patch0372: 0372-normal-menu-Check-return-code-of-the-script-when-exe.patch
Patch0373: 0373-Include-license-into-grub-set-password-util.patch

View File

@ -17,7 +17,7 @@
Name: grub2
Epoch: 1
Version: 2.12
Release: 32%{?dist}
Release: 33%{?dist}
Summary: Bootloader with support for Linux, Multiboot and more
License: GPL-3.0-or-later
URL: http://www.gnu.org/software/grub/
@ -574,6 +574,10 @@ fi
%endif
%changelog
* Thu Nov 06 2025 Leo Sandoval <lsandova@redhat.com> 2.12-33
- Include license into grub-set-password util
- Resolves: #RHEL-120704
* Tue Oct 28 2025 Leo Sandoval <lsandova@redhat.com> 2.12-32
- Disable annobin stack protection check
- Resolves: #RHEL-89464