forked from Mirror/pmbootstrap
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:
parent
05c013536d
commit
3b02d35f1d
1 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue