Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root encryption identifier not persisten #1

Open
BennyLi opened this issue Feb 28, 2020 · 0 comments
Open

Root encryption identifier not persisten #1

BennyLi opened this issue Feb 28, 2020 · 0 comments

Comments

@BennyLi
Copy link
Owner

BennyLi commented Feb 28, 2020

Currently the main drive, which is encrypted and where Arch Linux is installed into, has no partitions. As of this there currently seems no way to use something like a UUID to identify the disk while opening it at boot time. This could lead to a boot failure.

# Use the whole drive for encryption so nothing is visible at all (even no partitions)
ENCRYPTION_PARTITION="$INSTALL_DEVICE"
#ENCRYPTION_PARTITION="$(ls ${INSTALL_DEVICE}* | grep -E "^${INSTALL_DEVICE}p?1$")"

cryptsetup \
--batch-mode \
--verbose \
--cipher $ENCRYPTION_TYPE \
--key-size $ENCRYPTION_KEYSIZE \
--header $LUKS_ROOT_HEADER_FILE \
--type luks2 \
luksFormat $ENCRYPTION_PARTITION $LUKS_ROOT_KEY_FILE | \
show_progress_box "$DIALOG_STEP_TITLE - $DIALOG_SUBSTEP_TITLE" $PROGRESS_PERCENTAGE "Encrypting the root parition ..."

root_device_id=$ENCRYPTION_PARTITION

cryptsetup --header /mnt/$header_file_name --key-file=/mnt/$key_file_name --keyfile-size=$ENCRYPTION_KEYSIZE open $root_device_id $LUKS_DEVICE_NAME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant