chroot/*: use exec.run_(root_)cmd

This commit is contained in:
InsanePrawn 2022-08-15 06:32:43 +02:00
parent 0465d1035a
commit 6593471a8e
2 changed files with 4 additions and 3 deletions

View file

@ -1,11 +1,11 @@
import logging
import os
import subprocess
from glob import glob
from shutil import rmtree
from constants import Arch
from exec import run_root_cmd
from .abstract import Chroot, get_chroot
from .helpers import base_chroot_name
@ -26,7 +26,7 @@ class BaseChroot(Chroot):
logging.info(f'Pacstrapping chroot {self.name}: {", ".join(self.base_packages)}')
result = subprocess.run([
result = run_root_cmd([
'pacstrap',
'-C',
pacman_conf_target,