From 3530e10e2ffe5ab35d6f51aa1c32ebdc28b4d0f7 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Sun, 1 Mar 2026 20:25:33 -0500 Subject: [PATCH 1/2] Remove support for NTFS root file system --- PKGBUILD | 1 - archinstall/lib/disk/device_handler.py | 3 --- archinstall/lib/installer.py | 9 ++------- archinstall/lib/interactions/disk_conf.py | 4 ---- archinstall/lib/models/device.py | 10 ---------- 5 files changed, 2 insertions(+), 25 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index bb4eabd9ca..cda10ca5b4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -36,7 +36,6 @@ depends=( 'xfsprogs' 'lvm2' 'f2fs-tools' - 'ntfs-3g' 'libfido2' ) makedepends=( diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py index 0a072e7aa0..98a10b79ac 100644 --- a/archinstall/lib/disk/device_handler.py +++ b/archinstall/lib/disk/device_handler.py @@ -253,9 +253,6 @@ def format( mkfs_type = 'fat' # Set FAT size options.extend(('-F', fs_type.value.removeprefix(mkfs_type))) - case FilesystemType.Ntfs: - # Skip zeroing and bad sector check - options.append('--fast') case FilesystemType.LinuxSwap: command = 'mkswap' case _: diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 79b1eb120f..8129c4ce48 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -862,14 +862,9 @@ def _prepare_fs_type( self._base_packages.append(pkg) # https://github.com/archlinux/archinstall/issues/1837 - if fs_type.fs_type_mount == 'btrfs': + if fs_type == FilesystemType.Btrfs: self._disable_fstrim = True - # There is not yet an fsck tool for NTFS. If it's being used for the root filesystem, the hook should be removed. - if fs_type.fs_type_mount == 'ntfs3' and mountpoint == self.target: - if 'fsck' in self._hooks: - self._hooks.remove('fsck') - def _prepare_encrypt(self, before: str = 'filesystems') -> None: if self._disk_encryption.hsm_device: # Required by mkinitcpio to add support for fido2-device options @@ -1199,7 +1194,7 @@ def _get_kernel_params( kernel_parameters.append('rw') - kernel_parameters.append(f'rootfstype={root.safe_fs_type.fs_type_mount}') + kernel_parameters.append(f'rootfstype={root.safe_fs_type}') kernel_parameters.extend(self._kernel_params) debug(f'kernel parameters: {" ".join(kernel_parameters)}') diff --git a/archinstall/lib/interactions/disk_conf.py b/archinstall/lib/interactions/disk_conf.py index d027659553..b9a5767ee9 100644 --- a/archinstall/lib/interactions/disk_conf.py +++ b/archinstall/lib/interactions/disk_conf.py @@ -1,6 +1,5 @@ from pathlib import Path -from archinstall.lib.args import arch_config_handler from archinstall.lib.disk.device_handler import device_handler from archinstall.lib.disk.partitioning_menu import manual_partitioning from archinstall.lib.menu.helpers import Confirmation, Notify, Selection, Table @@ -257,9 +256,6 @@ def select_main_filesystem_format() -> FilesystemType: MenuItem('f2fs', value=FilesystemType.F2fs), ] - if arch_config_handler.args.advanced: - items.append(MenuItem('ntfs', value=FilesystemType.Ntfs)) - group = MenuItemGroup(items, sort_items=False) result = Selection[FilesystemType]( group, diff --git a/archinstall/lib/models/device.py b/archinstall/lib/models/device.py index 9f1722a987..49853ff780 100644 --- a/archinstall/lib/models/device.py +++ b/archinstall/lib/models/device.py @@ -799,16 +799,6 @@ class FilesystemType(Enum): def is_crypto(self) -> bool: return self == FilesystemType.Crypto_luks - @property - def fs_type_mount(self) -> str: - match self: - case FilesystemType.Ntfs: - return 'ntfs3' - case FilesystemType.Fat32: - return 'vfat' - case _: - return self.value - @property def parted_value(self) -> str: return self.value + '(v1)' if self == FilesystemType.LinuxSwap else self.value From 368750f4caa764216c49bc0983eade2cd8d3d39e Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Mon, 2 Mar 2026 07:30:43 -0500 Subject: [PATCH 2/2] Fix rootfstype value --- archinstall/lib/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 8129c4ce48..9e4da9dc79 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1194,7 +1194,7 @@ def _get_kernel_params( kernel_parameters.append('rw') - kernel_parameters.append(f'rootfstype={root.safe_fs_type}') + kernel_parameters.append(f'rootfstype={root.safe_fs_type.value}') kernel_parameters.extend(self._kernel_params) debug(f'kernel parameters: {" ".join(kernel_parameters)}')