Adjust luksFormat options to reduce time to open luks device on boot (#430)

This is a workaround for #429, until the iteration count can be
specified directly in cryptsetup.

* Add default iter-time option, and option to override
* set SHA1 default hash for luksFormat, add option to override
* [RX51] load omap-sham in initramfs for HW accel. sha1
This commit is contained in:
clayton craft 2017-09-19 19:46:18 +00:00 committed by Oliver Smith
parent 70aa50ff50
commit 558cd40fbf
5 changed files with 14 additions and 6 deletions

View file

@ -203,6 +203,9 @@ def arguments():
" eg. /dev/mmcblk0")
install.add_argument("--cipher", help="cryptsetup cipher used to"
" encrypt the system partition, eg. aes-xts-plain64")
install.add_argument("--iter-time", help="cryptsetup iteration time (in"
" miliseconds) to use when encrypting the system"
" partiton")
install.add_argument("--add", help="comma separated list of packages to be"
" added to the rootfs (e.g. 'vim,gcc')")
install.add_argument("--no-fde", help="do not use full disk encryption",
@ -218,7 +221,7 @@ def arguments():
action="store_true", dest="recovery_flash_bootimg")
install.add_argument("--recovery-install-partition", default="system",
help="partition to flash from recovery,"
"eg. external_sd",
" eg. external_sd",
dest="recovery_install_partition")
# Action: menuconfig / parse_apkbuild