Add osk-sdl as default luks unlock mechanism on boot (#476)

More information: <https://postmarketos.org/osk-port>
This commit is contained in:
clayton craft 2017-10-14 18:10:12 +00:00 committed by Oliver Smith
parent 383e3c8ab8
commit de84ec61a4
5 changed files with 70 additions and 47 deletions

View file

@ -192,6 +192,14 @@ def install_system_image(args):
(size_image, size_boot) = get_subpartitions_size(args)
pmb.install.blockdevice.create(args, size_image)
pmb.install.partition(args, size_boot)
if args.full_disk_encryption:
logging.info("WARNING: Full disk encryption is enabled!")
logging.info("Make sure that osk-sdl has been properly configured for your device")
logging.info("or else you will be unable to unlock the rootfs on boot!")
logging.info("If you started a device port, it is recommended you disable")
logging.info("FDE by re-running the install command with '--no-fde' until")
logging.info("you have properly configured osk-sdl. More information:")
logging.info("<https://postmarketos.org/osk-port>")
pmb.install.format(args)
# Just copy all the files