install --fde --android-recovery-zip: show warning (MR 1958)

This is likely to fail with the new default cryptsetup cipher of
aes-xts-plain64, as many downstream kernels used in recovery OS (like
TWRP) do not have CRYPTO_XTS set.
This commit is contained in:
Oliver Smith 2020-07-08 20:06:07 +02:00
parent 05c013536d
commit 3b02d35f1d
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -241,6 +241,17 @@ def install(args):
if flasher.get("split", False): if flasher.get("split", False):
args.split = True args.split = True
# Warning for android recovery zip with FDE
if args.android_recovery_zip and args.full_disk_encryption:
logging.info("WARNING: --fde is rarely used in combination with"
" --android-recovery-zip. If this does not work, consider"
" using another method (e.g. installing via netcat)")
logging.info("WARNING: the kernel of the recovery system (e.g. TWRP)"
f" must support the cryptsetup cipher '{args.cipher}'.")
logging.info("If you know what you are doing, consider setting a"
" different cipher with 'pmbootstrap install --cipher=..."
" --fde --android-recovery-zip'.")
pmb.install.install(args) pmb.install.install(args)