mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
change to cryptsetup defaults during luks creation
This commit is contained in:
parent
35b4d13782
commit
342430b160
1 changed files with 2 additions and 1 deletions
|
@ -1393,12 +1393,13 @@ _luks()
|
|||
# enter luks name
|
||||
_enter_luks_name
|
||||
### TODO: offer more options for encrypt!
|
||||
### defaults are used only
|
||||
# final step ask if everything is ok?
|
||||
DIALOG --yesno "Would you like to encrypt luks device below?\nName:${LUKSDEVICE}\nDevice:${PART}\n" 0 0 && LUKSFINISH="DONE"
|
||||
done
|
||||
_enter_luks_passphrase || return 1
|
||||
DIALOG --infobox "Encrypting ${PART}..." 0 0
|
||||
cryptsetup -c aes-cbc-essiv:sha256 -s 128 luksFormat ${PART} >${LOG} <${LUKSPASSPHRASE}
|
||||
cryptsetup luksFormat ${PART} >${LOG} <${LUKSPASSPHRASE}
|
||||
_opening_luks
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue