forked from Mirror/pmbootstrap
flasher: install depends of the method specified in the arguments (#1393)
This commit is contained in:
parent
82b9ea5af6
commit
b7b1fe9ef7
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ import pmb.helpers.mount
|
||||||
|
|
||||||
def init(args):
|
def init(args):
|
||||||
# Validate method
|
# Validate method
|
||||||
method = args.deviceinfo["flash_method"]
|
method = args.flash_method or args.deviceinfo["flash_method"]
|
||||||
if method not in pmb.config.flashers:
|
if method not in pmb.config.flashers:
|
||||||
raise RuntimeError("Flash method " + method + " is not supported by the"
|
raise RuntimeError("Flash method " + method + " is not supported by the"
|
||||||
" current configuration. However, adding a new flash method is "
|
" current configuration. However, adding a new flash method is "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue