From 9d630276d4c634e59a3e78436b8820ff1573816a Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Tue, 16 Sep 2025 21:11:36 +1000 Subject: [PATCH] Fix 3785 - F2FS parameters require 'extra_attr' --- archinstall/lib/disk/device_handler.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py index 8492ed14ae..5c6b350ee9 100644 --- a/archinstall/lib/disk/device_handler.py +++ b/archinstall/lib/disk/device_handler.py @@ -271,9 +271,12 @@ def format( options = [] match fs_type: - case FilesystemType.Btrfs | FilesystemType.F2fs | FilesystemType.Xfs: + case FilesystemType.Btrfs | FilesystemType.Xfs: # Force overwrite options.append('-f') + case FilesystemType.F2fs: + options.append('-f') + options.extend(('-O', 'extra_attr')) case FilesystemType.Ext2 | FilesystemType.Ext3 | FilesystemType.Ext4: # Force create options.append('-F') @@ -814,8 +817,8 @@ def partprobe(self, path: Path | None = None) -> None: def _wipe(self, dev_path: Path) -> None: """ Wipe a device (partition or otherwise) of meta-data, be it file system, LVM, etc. - @param dev_path: Device path of the partition to be wiped. - @type dev_path: str + @param dev_path: Device path of the partition to be wiped. + @type dev_path: str """ with open(dev_path, 'wb') as p: p.write(bytearray(1024))