1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

pmb.install: add --zap option

I zap chroots a lot, since I've found that it often "fixes" a lot of
weird issues that come about if you have stale chroots laying around.
So a common pattern I do is "pmb zap && pmb install ...". Having an
option to pmb install let's me simplify this.

Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20231214234051.4673-1-clayton@craftyguy.net%3E
This commit is contained in:
Clayton Craft 2023-12-14 15:40:51 -08:00 committed by Oliver Smith
parent a84dc5cf2d
commit 1020ea1a8b
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 5 additions and 0 deletions

View file

@ -81,6 +81,8 @@ def arguments_install(subparser):
" important password!")
ret.add_argument("--no-cgpt", help="do not use cgpt partition table",
dest="install_cgpt", action="store_false", default=True)
ret.add_argument("--zap", help="zap chroots before installing",
action="store_true")
# Image type
group_desc = ret.add_argument_group(