diff --git a/chroot/abstract.py b/chroot/abstract.py index 6b73362..dbe056c 100644 --- a/chroot/abstract.py +++ b/chroot/abstract.py @@ -34,7 +34,6 @@ class AbstractChroot(Protocol): name: str, arch: Arch, copy_base: bool, - initialize: bool, extra_repos: Mapping[str, RepoInfo], base_packages: list[str], path_override: str = None, @@ -89,7 +88,6 @@ class Chroot(AbstractChroot): name: str, arch: Arch, copy_base: bool = None, - initialize: bool = False, extra_repos: Mapping[str, RepoInfo] = {}, base_packages: list[str] = ['base', 'base-devel', 'git'], path_override: str = None, @@ -107,8 +105,6 @@ class Chroot(AbstractChroot): self.copy_base = copy_base if copy_base is not None else self._copy_base self.extra_repos = deepcopy(extra_repos) self.base_packages = base_packages.copy() - if initialize: - self.initialize() if self.name.startswith(BASE_CHROOT_PREFIX) and set(get_kupfer_local(self.arch).repos).intersection(set(self.extra_repos)): raise Exception(f'Base chroot {self.name} had local repos specified: {self.extra_repos}') diff --git a/chroot/base.py b/chroot/base.py index 4c951e5..552c59b 100644 --- a/chroot/base.py +++ b/chroot/base.py @@ -49,7 +49,7 @@ class BaseChroot(Chroot): def get_base_chroot(arch: Arch) -> BaseChroot: name = base_chroot_name(arch) - args = dict(arch=arch, copy_base=False, initialize=False) + args = dict(arch=arch, copy_base=False) chroot = get_chroot(name, initialize=False, chroot_class=BaseChroot, chroot_args=args) assert isinstance(chroot, BaseChroot) return chroot