diff --git a/pmb/aportgen/device.py b/pmb/aportgen/device.py index 8f901ed8..c73becb1 100644 --- a/pmb/aportgen/device.py +++ b/pmb/aportgen/device.py @@ -56,13 +56,12 @@ def ask_for_external_storage(args): def ask_for_flash_method(args): - flash_methods = ["fastboot", "heimdall", "0xffff"] while True: logging.info("Which flash method does the device support?") - method = pmb.helpers.cli.ask(args, "Flash method", flash_methods, - flash_methods[0]) + method = pmb.helpers.cli.ask(args, "Flash method", pmb.config.flash_methods, + pmb.config.flash_methods[0]) - if method in flash_methods: + if method in pmb.config.flash_methods: if method == "heimdall": heimdall_types = ["isorec", "bootimg"] while True: diff --git a/pmb/config/__init__.py b/pmb/config/__init__.py index 885e185f..11beb006 100644 --- a/pmb/config/__init__.py +++ b/pmb/config/__init__.py @@ -269,6 +269,8 @@ install_device_packages = [ # FLASH # +flash_methods = ["fastboot", "heimdall", "0xffff"] + # These folders will be mounted at the same location into the native # chroot, before the flash programs get started. flash_mount_bind = [