commit:     8aa79ee17291ca2bef5c9117b14d4553afe00fde
Author:     Louis Sautier <sautier.louis <AT> gmail <DOT> com>
AuthorDate: Sat Jan  5 01:11:26 2019 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Mar  1 05:58:54 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=8aa79ee1

Fix inconsistent case for ROOT/SWAP.encrypted flag filenames

openLUKS() creates files using upper case names, not lower case.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

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

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index f8f9825..a88ed60 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1472,12 +1472,12 @@ startLUKS() {
                /sbin/ifconfig $(echo "${IP}" | awk -F":" '{print $6}' ) 0.0.0.0
        fi
 
-       if [ -e /root.decrypted ]; then
-               rm /root.decrypted
+       if [ -e /ROOT.decrypted ]; then
+               rm /ROOT.decrypted
        fi
 
-       if [ -e /swap.decrypted ]; then
-               rm /swap.decrypted
+       if [ -e /SWAP.decrypted ]; then
+               rm /SWAP.decrypted
        fi
 }
 

Reply via email to