Skip to content

Commit cfc6b2d

Browse files
committed
Add mdadm RAID support to disk detection
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent d96b2a9 commit cfc6b2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/host.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def rescan_block_devices_info(self) -> None:
616616
def disks(self) -> list[Host.BlockDeviceInfo]:
617617
""" List of BlockDeviceInfo for all disks. """
618618
# filter out partitions from block_devices
619-
return sorted((disk for disk in self.block_devices_info if not disk["pkname"]),
619+
return sorted((disk for disk in self.block_devices_info if not disk["pkname"] or disk['type'] == 'raid0'),
620620
key=lambda disk: disk["name"])
621621

622622
def disk_is_available(self, disk: DiskDevName) -> bool:

0 commit comments

Comments
 (0)