forked from Mirror/pmbootstrap
pmb.flasher/export: Add --no-install option to skip kernel/initfs update (!1863)
At the moment, pmbootstrap updates the kernel and the initfs whenever using the flasher or export. This is useful, but sometimes you just want to boot exactly the same kernel several times. In that case, having to wait several seconds for the (redundant) update to complete is quite annoying. Add a --no-install option that allows skipping the kernel/initfs update.
This commit is contained in:
parent
8f4bd7dea1
commit
60217d0818
4 changed files with 13 additions and 6 deletions
|
@ -22,8 +22,9 @@ def frontend(args):
|
|||
" install' first (without the 'sdcard' parameter).")
|
||||
|
||||
# Rebuild the initramfs, just to make sure (see #69)
|
||||
flavor = pmb.helpers.frontend._parse_flavor(args)
|
||||
pmb.chroot.initfs.build(args, flavor, "rootfs_" + args.device)
|
||||
flavor = pmb.helpers.frontend._parse_flavor(args, args.autoinstall)
|
||||
if args.autoinstall:
|
||||
pmb.chroot.initfs.build(args, flavor, "rootfs_" + args.device)
|
||||
|
||||
# Do the export, print all files
|
||||
logging.info("Export symlinks to: " + target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue