diff --git a/pmb/config/__init__.py b/pmb/config/__init__.py index 11beb006..58c2001c 100644 --- a/pmb/config/__init__.py +++ b/pmb/config/__init__.py @@ -269,7 +269,7 @@ install_device_packages = [ # FLASH # -flash_methods = ["fastboot", "heimdall", "0xffff"] +flash_methods = ["fastboot", "heimdall", "0xffff", "none"] # These folders will be mounted at the same location into the native # chroot, before the flash programs get started. diff --git a/pmb/flasher/frontend.py b/pmb/flasher/frontend.py index ff2c225b..0f2fb97f 100644 --- a/pmb/flasher/frontend.py +++ b/pmb/flasher/frontend.py @@ -112,6 +112,12 @@ def sideload(args): def frontend(args): action = args.action_flasher + method = args.flash_method or args.deviceinfo["flash_methods"] + + if method == "none" and action in ["boot", "flash_kernel", "flash_system"]: + logging.info("This device doesn't support any flash method.") + return + if action in ["boot", "flash_kernel"]: kernel(args) if action == "flash_system":