update root chroot on start (runtime updating on todo)

This commit is contained in:
2021-05-24 22:50:24 +02:00
parent d1789f8d96
commit 1257e6e49b

View File

@@ -156,6 +156,9 @@ def setup_chroot():
subprocess.run( subprocess.run(
["mkarchroot", os.path.join(config["basedir"]["chroot"], "root"), "base-devel"], ["mkarchroot", os.path.join(config["basedir"]["chroot"], "root"), "base-devel"],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode(errors='ignore')) stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode(errors='ignore'))
else:
logging.debug("[NSPAWN] %s", subprocess.run(
["arch-nspawn", os.path.join(config["basedir"]["chroot"], "root"), "pacman", "-Syuu", "--noconfirm"]))
def setup_makepkg(repo) -> None: def setup_makepkg(repo) -> None: