From c4b17130d40aa7ed778511e8998f386d310ce75e Mon Sep 17 00:00:00 2001 From: tunebes Date: Wed, 12 Oct 2022 14:48:34 -0300 Subject: [PATCH] storage: Handle file systems on non-physical devices Fixes: #2126. Reviewed-by: Sunil Mohan Adapa --- plinth/modules/storage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/storage/__init__.py b/plinth/modules/storage/__init__.py index 7b29265e6..835170e03 100644 --- a/plinth/modules/storage/__init__.py +++ b/plinth/modules/storage/__init__.py @@ -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