mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-15 12:25:09 +03:00
treewide: split chroots from workdir
Introduce a new "cache" subdirectory in the pmbootstrap workdir, all the cache and config bits go in here, anything that needs to be accessible from inside a chroot. The whole dir is then bind-mounted into the chroot as /cache with appropriate symlinks. This dir is in the config as config.cache. In addition, all the cache_* and other config dirs are renamed to be closer to the names of the equivalent dirs in the chroot (e.g. abuild-config) and to avoid redundant naming since they are now under a "cache" dir. Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
This commit is contained in:
parent
1560a3f221
commit
9f8edf539d
34 changed files with 130 additions and 127 deletions
|
@ -44,7 +44,7 @@ def shutdown(only_install_related: bool = False) -> None:
|
|||
# the chroots, but we want it gone afterwards (e.g. when the chroot
|
||||
# contents get copied to a rootfs / installer image, or if creating an
|
||||
# android recovery zip from its contents).
|
||||
for marker in get_context().config.localdir.glob("chroot_*/in-pmbootstrap"):
|
||||
for marker in get_context().config.work.glob("chroot_*/in-pmbootstrap"):
|
||||
pmb.helpers.run.root(["rm", marker])
|
||||
|
||||
logging.debug("Shutdown complete")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue