Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorHao Xiang <haoxiangzhao@outlook.com>2024-04-16 18:56:44 +0800
committerGitHub <noreply@github.com>2024-04-16 20:56:44 +1000
commit8f5bc523db80729901d8179ed30209576a06f4ca (patch)
treeddabd317b50b4ba6ddf82d8ad7e0f7a1578849c3 /archinstall/lib
parent5aa616e70de0d5d5d1128945484b2892ce91be29 (diff)
Fix null fs_type of partition (#2458) (#2459)
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk/device_model.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/disk/device_model.py b/archinstall/lib/disk/device_model.py
index 1cd3d674..f8873495 100644
--- a/archinstall/lib/disk/device_model.py
+++ b/archinstall/lib/disk/device_model.py
@@ -114,7 +114,7 @@ class DiskLayoutConfiguration:
for partition in entry.get('partitions', []):
device_partition = PartitionModification(
status=ModificationStatus(partition['status']),
- fs_type=FilesystemType(partition['fs_type']),
+ fs_type=FilesystemType(partition['fs_type']) if partition.get('fs_type') else None,
start=Size.parse_args(partition['start']),
length=Size.parse_args(partition['size']),
mount_options=partition['mount_options'],
@@ -663,7 +663,7 @@ class PartitionModification:
type: PartitionType
start: Size
length: Size
- fs_type: Optional[FilesystemType]
+ fs_type: Optional[FilesystemType] = None
mountpoint: Optional[Path] = None
mount_options: List[str] = field(default_factory=list)
flags: List[PartitionFlag] = field(default_factory=list)
@@ -815,7 +815,7 @@ class PartitionModification:
'type': self.type.value,
'start': self.start.json(),
'size': self.length.json(),
- 'fs_type': self.fs_type.value if self.fs_type else '',
+ 'fs_type': self.fs_type.value if self.fs_type else None,
'mountpoint': str(self.mountpoint) if self.mountpoint else None,
'mount_options': self.mount_options,
'flags': [f.name for f in self.flags],