forked from Mirror/pmbootstrap
Fix #162: flash_system: meaningful error for missing image
This commit is contained in:
parent
56b34212f6
commit
5651c28b41
2 changed files with 30 additions and 30 deletions
|
@ -84,8 +84,8 @@ def system(args):
|
|||
# Generate system image, install flasher
|
||||
img_path = "/home/user/rootfs/" + args.device + ".img"
|
||||
if not os.path.exists(args.work + "/chroot_native" + img_path):
|
||||
setattr(args, "sdcard", None)
|
||||
pmb.install.install(args, False)
|
||||
raise RuntimeError("The system image has not been generated yet,"
|
||||
" please run 'pmbootstrap install' first.")
|
||||
pmb.flasher.init(args)
|
||||
|
||||
# Run the flasher
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue