Skip to content

Commit

Permalink
disk: change from_partition() parameters (#3039)
Browse files Browse the repository at this point in the history
  • Loading branch information
codefiles authored Dec 22, 2024
1 parent a8c2a5a commit 5f8cdcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
5 changes: 1 addition & 4 deletions archinstall/lib/disk/device_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,8 @@ def load_devices(self) -> None:
partition_infos.append(
_PartitionInfo.from_partition(
partition,
lsblk_info,
fs_type,
lsblk_info.partn,
lsblk_info.partuuid,
lsblk_info.uuid,
lsblk_info.mountpoints,
subvol_infos
)
)
Expand Down
13 changes: 5 additions & 8 deletions archinstall/lib/disk/device_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,8 @@ def table_data(self) -> dict[str, str]:
def from_partition(
cls,
partition: Partition,
lsblk_info: LsblkInfo,
fs_type: FilesystemType | None,
partn: int | None,
partuuid: str | None,
uuid: str | None, # pylint: disable=redefined-outer-name
mountpoints: list[Path],
btrfs_subvol_infos: list[_BtrfsSubvolumeInfo] = []
) -> _PartitionInfo:
partition_type = PartitionType.get_type_from_code(partition.type)
Expand All @@ -481,11 +478,11 @@ def from_partition(
start=start,
length=length,
flags=flags,
partn=partn,
partuuid=partuuid,
uuid=uuid,
partn=lsblk_info.partn,
partuuid=lsblk_info.partuuid,
uuid=lsblk_info.uuid,
disk=partition.disk,
mountpoints=mountpoints,
mountpoints=lsblk_info.mountpoints,
btrfs_subvol_infos=btrfs_subvol_infos
)

Expand Down

0 comments on commit 5f8cdcb

Please sign in to comment.