From d256e704808bf84addfc026a6ddef6fd59ba0bb5 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Wed, 17 Sep 2025 18:32:04 +1000 Subject: [PATCH] Fix 3785 - F2FS parameters require 'extra_attr' (#3796) Co-authored-by: Daniel Girtler --- 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 8492ed14..5c6b350e 100644 --- a/archinstall/lib/disk/device_handler.py +++ b/archinstall/lib/disk/device_handler.py @@ -271,9 +271,12 @@ class DeviceHandler: 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 @@ class DeviceHandler: 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))