From 086ec3e85077feefa5af0002824003c34bbfb8a7 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Dec 15 2015 18:55:18 +0000 Subject: centos-grub2-password-fix --- diff --git a/SOURCES/0001-centos-grub2-password-fix.patch b/SOURCES/0001-centos-grub2-password-fix.patch new file mode 100644 index 0000000..ac0966b --- /dev/null +++ b/SOURCES/0001-centos-grub2-password-fix.patch @@ -0,0 +1,25 @@ +From b6370991cc254737d07d04d2dca4fef1215e2536 Mon Sep 17 00:00:00 2001 +From: Johnny Hughes +Date: Tue, 15 Dec 2015 12:26:48 -0600 +Subject: [PATCH] centos grub2-password fix + +--- + util/grub-setpassword.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/util/grub-setpassword.in b/util/grub-setpassword.in +index dd76f00..a322dfb 100755 +--- a/util/grub-setpassword.in ++++ b/util/grub-setpassword.in +@@ -1,7 +1,7 @@ + #!/bin/sh -e + + if [ -d /sys/firmware/efi/efivars/ ]; then +- grubdir=`echo "/@bootdirname@/efi/EFI/redhat/" | sed 's,//*,/,g'` ++ grubdir=`echo "/@bootdirname@/efi/EFI/centos/" | sed 's,//*,/,g'` + else + grubdir=`echo "/@bootdirname@/@grubdirname@" | sed 's,//*,/,g'` + fi +-- +1.8.3.1 + diff --git a/SPECS/grub2.spec b/SPECS/grub2.spec index 07f0e01..3a8f718 100644 --- a/SPECS/grub2.spec +++ b/SPECS/grub2.spec @@ -248,7 +248,7 @@ Patch0184: 0184-Be-more-aggro-about-actually-using-the-configured-ne.patch Patch0185: 0185-efinet-add-filter-for-the-first-exclusive-reopen-of-.patch Patch0186: 0186-Fix-security-issue-when-reading-username-and-passwor.patch Patch0187: 0187-01_users-Handle-GRUB_PASSWORD-better.patch - +Patch9999: 0001-centos-grub2-password-fix.patch BuildRequires: flex bison binutils python