forked from Mirror/pmbootstrap
Also add more comments to the zap function.
This commit is contained in:
parent
41d6a002dd
commit
f7fa7ae1a9
2 changed files with 20 additions and 4 deletions
|
@ -129,6 +129,8 @@ def init(args):
|
|||
# Save config
|
||||
pmb.config.save(args, cfg)
|
||||
|
||||
# Zap existing chroots
|
||||
setattr(args, "work", cfg["pmbootstrap"]["work"])
|
||||
if (device_exists and
|
||||
len(glob.glob(args.work + "/chroot_*")) and
|
||||
pmb.helpers.cli.confirm(args, "Zap existing chroots to apply configuration?", default=True)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue