Skip to content

Commit d256e70

Browse files
svartkanindgirtler
andauthored
Fix 3785 - F2FS parameters require 'extra_attr' (#3796)
Co-authored-by: Daniel Girtler <dgirtler@atlassian.com>
1 parent de05dcb commit d256e70

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

archinstall/lib/disk/device_handler.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,12 @@ def format(
271271
options = []
272272

273273
match fs_type:
274-
case FilesystemType.Btrfs | FilesystemType.F2fs | FilesystemType.Xfs:
274+
case FilesystemType.Btrfs | FilesystemType.Xfs:
275275
# Force overwrite
276276
options.append('-f')
277+
case FilesystemType.F2fs:
278+
options.append('-f')
279+
options.extend(('-O', 'extra_attr'))
277280
case FilesystemType.Ext2 | FilesystemType.Ext3 | FilesystemType.Ext4:
278281
# Force create
279282
options.append('-F')
@@ -814,8 +817,8 @@ def partprobe(self, path: Path | None = None) -> None:
814817
def _wipe(self, dev_path: Path) -> None:
815818
"""
816819
Wipe a device (partition or otherwise) of meta-data, be it file system, LVM, etc.
817-
@param dev_path: Device path of the partition to be wiped.
818-
@type dev_path: str
820+
@param dev_path: Device path of the partition to be wiped.
821+
@type dev_path: str
819822
"""
820823
with open(dev_path, 'wb') as p:
821824
p.write(bytearray(1024))

0 commit comments

Comments
 (0)