Show path to boot.img and description of commands after pmbootstrap install

This change got lost in this PR merge:
https://github.com/postmarketOS/pmbootstrap/pull/125
This commit is contained in:
Pablo Castellano 2017-07-03 22:17:58 +02:00
parent 5d62a36bb8
commit ba744abae0
1 changed files with 16 additions and 0 deletions

View File

@ -128,5 +128,21 @@ def install(args, show_flash_msg=True):
logging.info("Run the following to flash your installation to the"
" target device:")
logging.info("* pmbootstrap flasher flash_kernel")
logging.info(" Flashes the kernel + initramfs to your device:")
logging.info(" " + args.work + "/chroot_rootfs_" + args.device + "/boot")
method = args.deviceinfo["flash_methods"]
if (method in pmb.config.flashers and "boot" in
pmb.config.flashers[method]["actions"]):
logging.info(" (NOTE: " + method + " also supports booting"
" the kernel/initramfs directly without flashing."
" Use 'pmbootstrap flasher boot' to do that.)")
if not args.sdcard:
logging.info("* pmbootstrap flasher flash_system")
logging.info(" Flashes the system image, that has been"
" generated to your device:")
logging.info(" " + args.work + "/chroot_native/home/user/rootfs/" +
args.device + ".img")
logging.info(" (NOTE: This file has a partition table,"
" which contains one currently unused boot"
" partition, and the root partition.)")