diff --git a/pmb/flasher/init.py b/pmb/flasher/init.py index 4256f7f5..f9f6b548 100644 --- a/pmb/flasher/init.py +++ b/pmb/flasher/init.py @@ -23,7 +23,7 @@ import pmb.helpers.mount def init(args): # Validate method - method = args.deviceinfo["flash_method"] + method = args.flash_method or args.deviceinfo["flash_method"] if method not in pmb.config.flashers: raise RuntimeError("Flash method " + method + " is not supported by the" " current configuration. However, adding a new flash method is "