install: remove /mnt/pmbootstrap at the end

Don't include the /mnt/pmbootstrap directories in the images created
with "pmbootstrap install".

Reviewed-by: Pablo Correa Gómez <ablocorrea@hotmail.com>
Reviewed-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230806184729.4891-3-ollieparanoid@postmarketos.org%3E
This commit is contained in:
Oliver Smith 2023-08-06 20:43:29 +02:00
parent fdbb8eebb8
commit 0ff6ad481d
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 58 additions and 1 deletions

View file

@ -816,6 +816,7 @@ def install_system_image(args, size_reserve, suffix, step, steps,
# Clean up after running mkinitfs in chroot
pmb.helpers.mount.umount_all(args, f"{args.work}/chroot_{suffix}")
pmb.helpers.run.root(args, ["rm", f"{args.work}/chroot_{suffix}/in-pmbootstrap"])
pmb.chroot.remove_mnt_pmbootstrap(args, suffix)
# Just copy all the files
logging.info(f"*** ({step + 1}/{steps}) FILL INSTALL BLOCKDEVICE ***")