commit:     1f0028b52e110602975aa6bc25ca52d58bc9ea91
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 29 20:46:33 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Aug 29 20:46:33 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=1f0028b5

initrd.scripts: openLUKS(): gpg was moved to /usr/bin

Bug: https://bugs.gentoo.org/693006
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/initrd.scripts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index b33fad7..2969f44 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1792,7 +1792,7 @@ openLUKS() {
 
                                        if [ "$(echo ${LUKS_KEY} | grep -o 
'.gpg$')" = ".gpg" ]
                                        then
-                                               if [ ! -x '/sbin/gpg' ]
+                                               if [ ! -x '/usr/bin/gpg' ]
                                                then
                                                        bad_msg "GPG-encrypted 
key file provided but gpg program is missing. Was initramfs built without --gpg 
parameter?"
                                                        bad_msg "Falling back 
to passphrase usage!"
@@ -1800,7 +1800,7 @@ openLUKS() {
                                                        [ -e /dev/tty ] && run 
mv /dev/tty /dev/tty.org
                                                        run mknod /dev/tty c 5 1
                                                        
cryptsetup_options="${cryptsetup_options} -d -"
-                                                       gpg_cmd="/sbin/gpg 
--logger-file /dev/null --quiet --decrypt ${mntkey}${LUKS_KEY} |"
+                                                       gpg_cmd="/usr/bin/gpg 
--logger-file /dev/null --quiet --decrypt ${mntkey}${LUKS_KEY} |"
                                                fi
                                        else
                                                
cryptsetup_options="${cryptsetup_options} -d ${mntkey}${LUKS_KEY}"

Reply via email to