~postmarketos/pmbootstrap-devel

pmbootstrap: pmb.install: add --zap option v1 APPLIED

Clayton Craft: 1
 pmb.install: add --zap option

 2 files changed, 5 insertions(+), 0 deletions(-)
#1114981 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~postmarketos/pmbootstrap-devel/patches/47750/mbox | git am -3
Learn more about email & git

[PATCH pmbootstrap] pmb.install: add --zap option Export this patch

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.
---
 pmb/install/_install.py | 3 +++
 pmb/parse/arguments.py  | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/pmb/install/_install.py b/pmb/install/_install.py
index 1adfe789..2f8e6e6a 100644
--- a/pmb/install/_install.py
+++ b/pmb/install/_install.py
@@ -1170,6 +1170,9 @@ def install(args):
    else:
        steps = 4

    if args.zap:
        pmb.chroot.zap(args, False)

    # Install required programs in native chroot
    step = 1
    logging.info(f"*** ({step}/{steps}) PREPARE NATIVE CHROOT ***")
diff --git a/pmb/parse/arguments.py b/pmb/parse/arguments.py
index ffd8780c..b38d9cec 100644
--- a/pmb/parse/arguments.py
+++ b/pmb/parse/arguments.py
@@ -135,6 +135,8 @@ def arguments_install(subparser):
    group.add_argument("--iter-time", help="cryptsetup iteration time (in"
                       " milliseconds) to use when encrypting the system"
                       " partition")
    group.add_argument("--zap", help="zap chroots before installing",
                       action="store_true")

    # Packages
    group = ret.add_argument_group(
-- 
2.43.0
pmbootstrap/patches/.build.yml: SUCCESS in 16m38s

[pmb.install: add --zap option][0] from [Clayton Craft][1]

[0]: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/patches/47750
[1]: mailto:clayton@craftyguy.net

✓ #1114981 SUCCESS pmbootstrap/patches/.build.yml https://builds.sr.ht/~postmarketos/job/1114981