This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2024-01-26 18:11:15 +03:00 committed by GitHub
parent 132f9ff3c8
commit 973f377295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -45,7 +45,6 @@ then
else else
echo "luks_none" echo "luks_none"
fi fi
else
elif [[ $1 == "encrypt-name" ]] elif [[ $1 == "encrypt-name" ]]
then then
if blkid -o value -s TYPE $(lsblk -sJp | jq -r --arg dsk "$(df -P -h -T "$2" | awk 'END{print $1}')" '.blockdevices | .[] | select(.name == $dsk) | .children | .[0] | .name') | grep -i luks > /dev/null 2>&1 if blkid -o value -s TYPE $(lsblk -sJp | jq -r --arg dsk "$(df -P -h -T "$2" | awk 'END{print $1}')" '.blockdevices | .[] | select(.name == $dsk) | .children | .[0] | .name') | grep -i luks > /dev/null 2>&1

View File

@ -213,7 +213,7 @@ if root_uuid != home_uuid:
with open(CHROOT_CRYPTTAB_FILE_PATH, "w") as file: with open(CHROOT_CRYPTTAB_FILE_PATH, "w") as file:
albius_crypttab_file = _CRYPTTAB_SETUP_FILE.format( albius_crypttab_file = _CRYPTTAB_SETUP_FILE.format(
HOME_PART_UUID=home_uuid_encrypt, HOME_PART_UUID=home_uuid_encrypt,
ROOT_ENCRYPT_NAME=home_name_encrypt, HOME_ENCRYPT_NAME=home_name_encrypt,
LUKS_PASSWD=home_passwd, LUKS_PASSWD=home_passwd,
) )
file.write(albius_crypttab_file) file.write(albius_crypttab_file)