mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-17 13:25:10 +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
|
@ -51,7 +51,7 @@ class Config:
|
|||
# This is a class variable that gets treated as an instance variable. It's wrong, but since we
|
||||
# only ever have one config (for now?) it doesn't cause any issues. Would be good to fix though.
|
||||
aports: list[Path] = [ # noqa: RUF012
|
||||
Path(os.path.expanduser("~") + "/.local/var/pmbootstrap/cache_git/pmaports")
|
||||
Path(os.path.expanduser("~") + "/.local/var/pmbootstrap/cache/git/pmaports")
|
||||
]
|
||||
boot_size: int = 256
|
||||
build_default_device_arch: bool = False
|
||||
|
@ -84,6 +84,7 @@ class Config:
|
|||
ui_extras: bool = False
|
||||
user: str = "user"
|
||||
work: Path = Path(os.path.expanduser("~") + "/.local/var/pmbootstrap")
|
||||
cache: Path = Path(os.path.expanduser("~") + "/.local/var/pmbootstrap/cache")
|
||||
# automatically zap chroots that are for the wrong channel
|
||||
auto_zap_misconfigured_chroots: AutoZapConfig = AutoZapConfig.NO
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue