From 2c85b5eab02dfbbf6cd8cf0117848e0613d9e62d Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Wed, 14 Jan 2026 22:09:35 -0500 Subject: [PATCH] Remove storage module (#4128) --- archinstall/lib/installer.py | 3 --- archinstall/lib/storage.py | 18 ------------------ 2 files changed, 21 deletions(-) delete mode 100644 archinstall/lib/storage.py diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 68633a2e..1cf158dc 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -51,7 +51,6 @@ from .output import debug, error, info, log, logger, warn from .pacman import Pacman from .pacman.config import PacmanConfig from .plugins import plugins -from .storage import storage # 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'] @@ -95,8 +94,6 @@ class Installer: self.post_base_install: list[Callable] = [] # type: ignore[type-arg] - storage['installation_session'] = self - self._modules: list[str] = [] self._binaries: list[str] = [] self._files: list[str] = [] diff --git a/archinstall/lib/storage.py b/archinstall/lib/storage.py deleted file mode 100644 index 4c706a8f..00000000 --- a/archinstall/lib/storage.py +++ /dev/null @@ -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 = {}