Remove storage module (#4128)
This commit is contained in:
parent
972e278555
commit
2c85b5eab0
|
|
@ -51,7 +51,6 @@ from .output import debug, error, info, log, logger, warn
|
||||||
from .pacman import Pacman
|
from .pacman import Pacman
|
||||||
from .pacman.config import PacmanConfig
|
from .pacman.config import PacmanConfig
|
||||||
from .plugins import plugins
|
from .plugins import plugins
|
||||||
from .storage import storage
|
|
||||||
|
|
||||||
# Any package that the Installer() is responsible for (optional and the default ones)
|
# Any package that the Installer() is responsible for (optional and the default ones)
|
||||||
__packages__ = ['base', 'sudo', 'linux-firmware', 'linux', 'linux-lts', 'linux-zen', 'linux-hardened']
|
__packages__ = ['base', 'sudo', 'linux-firmware', 'linux', 'linux-lts', 'linux-zen', 'linux-hardened']
|
||||||
|
|
@ -95,8 +94,6 @@ class Installer:
|
||||||
|
|
||||||
self.post_base_install: list[Callable] = [] # type: ignore[type-arg]
|
self.post_base_install: list[Callable] = [] # type: ignore[type-arg]
|
||||||
|
|
||||||
storage['installation_session'] = self
|
|
||||||
|
|
||||||
self._modules: list[str] = []
|
self._modules: list[str] = []
|
||||||
self._binaries: list[str] = []
|
self._binaries: list[str] = []
|
||||||
self._files: list[str] = []
|
self._files: list[str] = []
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
# There's a few scenarios of execution:
|
|
||||||
# 1. In the git repository, where ./profiles_bck/ exist
|
|
||||||
# 2. When executing from a remote directory, but targeted a script that starts from the git repository
|
|
||||||
# 3. When executing as a python -m archinstall module where profiles_bck exist one step back for library reasons.
|
|
||||||
# (4. Added the ~/.config directory as an additional option for future reasons)
|
|
||||||
#
|
|
||||||
# And Keeping this in dict ensures that variables are shared across imports.
|
|
||||||
from typing import TYPE_CHECKING, NotRequired, TypedDict
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
|
||||||
from archinstall.lib.installer import Installer
|
|
||||||
|
|
||||||
|
|
||||||
class _StorageDict(TypedDict):
|
|
||||||
installation_session: NotRequired['Installer']
|
|
||||||
|
|
||||||
|
|
||||||
storage: _StorageDict = {}
|
|
||||||
Loading…
Reference in New Issue