forked from Mirror/pmbootstrap
Added flavor to the flash_system command for consistency, This fixes issue #133
This commit is contained in:
parent
48ffe79051
commit
d16c90b39c
1 changed files with 2 additions and 1 deletions
|
@ -73,6 +73,7 @@ def list_flavors(args):
|
||||||
|
|
||||||
def system(args):
|
def system(args):
|
||||||
# Generate system image, install flasher
|
# Generate system image, install flasher
|
||||||
|
flavor = parse_flavor_arg(args)
|
||||||
img_path = "/home/user/rootfs/" + args.device + ".img"
|
img_path = "/home/user/rootfs/" + args.device + ".img"
|
||||||
if not os.path.exists(args.work + "/chroot_native" + img_path):
|
if not os.path.exists(args.work + "/chroot_native" + img_path):
|
||||||
setattr(args, "sdcard", None)
|
setattr(args, "sdcard", None)
|
||||||
|
@ -81,7 +82,7 @@ def system(args):
|
||||||
|
|
||||||
# Run the flasher
|
# Run the flasher
|
||||||
logging.info("(native) flash system image")
|
logging.info("(native) flash system image")
|
||||||
pmb.flasher.run(args, "flash_system")
|
pmb.flasher.run(args, "flash_system", flavor)
|
||||||
|
|
||||||
|
|
||||||
def list_devices(args):
|
def list_devices(args):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue