pmbootstrap install: add --ondev --no-rootfs (MR 1995)

Skip building the postmarketOS rootfs, and allow either installing a
pre-built pmOS rootfs, or even another operating system.
This commit is contained in:
Oliver Smith 2020-10-06 11:34:19 +02:00
parent 74d71c1b6c
commit 2247fc5aad
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 48 additions and 15 deletions

View file

@ -144,6 +144,12 @@ def arguments_install(subparser):
metavar="HOST_SRC:CHROOT_DEST", type=type_ondev_cp,
help="copy one or more files from the host system path"
" HOST_SRC to the target path CHROOT_DEST")
group.add_argument("--no-rootfs", dest="ondev_no_rootfs",
help="do not generate a pmOS rootfs as"
" /var/lib/rootfs.img (install chroot). The file"
" must either exist from a previous"
" 'pmbootstrap install' run or by providing it"
" as CHROOT_DEST with --cp", action="store_true")
def arguments_export(subparser):