From caf65b9faf99423ebc388bcc5fa4a5ce0c902232 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Jan 05 2016 14:25:39 +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 721557b..a8a34cc 100644 --- a/SPECS/grub2.spec +++ b/SPECS/grub2.spec @@ -249,7 +249,7 @@ 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 BuildRequires: ncurses-devel xz-devel bzip2-devel