fix: do not (mostly) handle /var/cache/blendOS explicitly
This commit is contained in:
parent
b53795bddb
commit
956ef6fb01
3 changed files with 9 additions and 31 deletions
|
|
@ -17,7 +17,13 @@ def gen_rootfs(system_config: dict, rootfs_path: str) -> RootFS:
|
|||
"""Generates a rootfs for a given system configuration."""
|
||||
|
||||
rootfs = RootFS(rootfs_path, system_config["distro-config"])
|
||||
rootfs.init()
|
||||
|
||||
subprocess.run(
|
||||
["bash", "-s"],
|
||||
text=True,
|
||||
input=system_config["distro-config"]["before-stages"],
|
||||
cwd=rootfs_path,
|
||||
)
|
||||
|
||||
modules = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ from .gen_rootfs import gen_rootfs
|
|||
|
||||
def update_cleanup() -> None:
|
||||
"""Clean-up from previous rebase/update."""
|
||||
|
||||
# FIXME: should not ideally handle /var/cache/blendOS explicitly
|
||||
subprocess.run(
|
||||
["umount", "-l", "/var/cache/akshara/rootfs/var/cache/blendOS"],
|
||||
stdout=subprocess.DEVNULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue