M pmb/install/_install.py => pmb/install/_install.py +3 -0
@@ 1227,6 1227,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 ***")
M pmb/parse/arguments.py => pmb/parse/arguments.py +2 -0
@@ 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(