storage: Handle file systems on non-physical devices

Fixes: #2126.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
tunebes authored and Sunil Mohan Adapa committed 2022-10-24 11:18:53 -07:00
1 parent 0e0f5e5a86
commit c4b17130d4
1 file changed
+1 -1
+1 -1
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