Do not install Btrfs module and binary in mkinitcpio (#3865)

* Do not install Btrfs module and binary in mkinitcpio

This is what btrfs hook already does.

Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>

* Remove unused properties from FilesystemType

They were only needed for Btrfs

Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>

---------

Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>
This commit is contained in:
Vasiliy Stelmachenok 2025-10-13 23:33:45 +03:00 committed by GitHub
parent daab8e6ff6
commit 53e8cb3a8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 20 deletions

View File

@ -802,10 +802,6 @@ class Installer:
) -> None:
if (pkg := fs_type.installation_pkg) is not None:
self._base_packages.append(pkg)
if (module := fs_type.installation_module) is not None:
self._modules.append(module)
if (binary := fs_type.installation_binary) is not None:
self._binaries.append(binary)
# https://github.com/archlinux/archinstall/issues/1837
if fs_type.fs_type_mount == 'btrfs':

View File

@ -822,22 +822,6 @@ class FilesystemType(Enum):
case _:
return None
@property
def installation_module(self) -> str | None:
match self:
case FilesystemType.Btrfs:
return 'btrfs'
case _:
return None
@property
def installation_binary(self) -> str | None:
match self:
case FilesystemType.Btrfs:
return '/usr/bin/btrfs'
case _:
return None
@property
def installation_hooks(self) -> str | None:
match self: