storage: Handle file systems on non-physical devices

Fixes: #2126.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
tunebes 2022-10-12 14:48:34 -03:00 committed by Sunil Mohan Adapa
parent 0e0f5e5a86
commit c4b17130d4
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -159,7 +159,7 @@ def _get_disks_from_df():
def get_filesystem_type(mount_point='/'):
"""Return the type of the filesystem mounted at mountpoint."""
for partition in psutil.disk_partitions():
for partition in psutil.disk_partitions(all=True):
if partition.mountpoint == mount_point:
return partition.fstype