pmbootstrap-meow/pmb/chroot
Oliver Smith c9674c4455
Fix crash in "zap -a" and "zap -o" with apk3
With apkv3, APKINDEX files get deleted when running "apk cache clean".
This is unexpected and needs to be investigated. Meanwhile run
cache_clean() on the native arch last, as it needs the APKINDEX for the
Alpine main repo of the native arch (even if cleaning other arches) in
order to set up the chroot where we run "apk cache clean". This prevents
crashing in "pmbootstrap zap -a" and "pmbootstrap zap -o".

Related: BPO issue 160
Related: pmb issue 2627
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2636
2025-07-03 21:52:54 +02:00
..
__init__.py pmb.chroot: Rename exists() to user_exists() (MR 2545) 2025-02-23 11:40:44 +01:00
apk.py pmb: Reformat with Ruff 0.9 (MR 2525) 2025-01-15 22:35:02 +01:00
binfmt.py pmb.chroot.binfmt: Initialise chroot before installing packages in register() (MR 2526) 2025-01-19 13:54:31 +01:00
init.py chroot: don't depende on alpine-base 2025-04-11 17:19:10 +02:00
initfs.py pmb: Reformat with Ruff 0.9 (MR 2525) 2025-01-15 22:35:02 +01:00
initfs_hooks.py pmb: Reformat with Ruff 0.9 (MR 2525) 2025-01-15 22:35:02 +01:00
mount.py pmbootstrap chroot: fix --image bugs (MR 2556) 2025-02-27 00:06:45 +01:00
other.py pmb: Use unpacking operator to concatenate collections (MR 2525) 2025-01-15 22:35:02 +01:00
run.py pmb.chroot.run: Add another overload for root() (MR 2515) 2025-02-27 00:28:16 +01:00
shutdown.py pmb: Add more type hints (MR 2490) 2024-12-19 10:09:22 +00:00
zap.py Fix crash in "zap -a" and "zap -o" with apk3 2025-07-03 21:52:54 +02:00