Move mounting code to utils.py, move a lot of chroot-logic from packages to chroot.py, cmd_chroot

also moar crossdirect

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
This commit is contained in:
InsanePrawn 2021-10-01 18:25:42 +02:00
parent a4c06446e3
commit d85c00fa12
8 changed files with 207 additions and 110 deletions

View file

@ -172,6 +172,7 @@ def cmd_build():
packages=packages,
pacman_conf=os.path.join(config.runtime['script_source_dir'], 'local/etc/pacman.conf'),
extra_repos=extra_repos,
bind_mounts={},
)
create_chroot_user(chroot_name, user=profile['username'], password=profile['password'])
if post_cmds: