forked from Mirror/pmbootstrap
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:
parent
a84dc5cf2d
commit
1020ea1a8b
2 changed files with 5 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue