fixes
This commit is contained in:
parent
132f9ff3c8
commit
973f377295
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user