mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00: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
|
||||||
_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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue