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
echo "luks_none"
fi
else
elif [[ $1 == "encrypt-name" ]]
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

View File

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