summaryrefslogtreecommitdiff
diff options
-rwxr-xr-xbin/removable_storage_watcher4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/removable_storage_watcher b/bin/removable_storage_watcher
index 522e7a8..d5a0722 100755
--- a/bin/removable_storage_watcher
+++ b/bin/removable_storage_watcher
@@ -619,6 +619,10 @@ class UDisks2StorageDeviceListener:
and record.value.prop_name == "MountPoints"
and record.value.prop_value != []):
found.add('mounted')
+ # On some systems partition are reported as mounted
+ # filesystems, without 'partition' record
+ if set(['partition', 'mounted']).issubset(needs):
+ needs.remove('partition')
# Finally memorize the drive the block device belongs to
elif (record.value.iface_name ==
"org.freedesktop.UDisks2.Block"