change to cryptsetup defaults during luks creation

This commit is contained in:
Tobias Powalowski 2015-09-04 20:17:37 +02:00
parent 35b4d13782
commit 342430b160

View file

@ -1393,12 +1393,13 @@ _luks()
# enter luks name # enter luks name
_enter_luks_name _enter_luks_name
### TODO: offer more options for encrypt! ### TODO: offer more options for encrypt!
### defaults are used only
# final step ask if everything is ok? # 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" DIALOG --yesno "Would you like to encrypt luks device below?\nName:${LUKSDEVICE}\nDevice:${PART}\n" 0 0 && LUKSFINISH="DONE"
done done
_enter_luks_passphrase || return 1 _enter_luks_passphrase || return 1
DIALOG --infobox "Encrypting ${PART}..." 0 0 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 _opening_luks
} }