summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2018-03-21 08:40:38 +0000
committerPMR <pmr@pmr-lander>2018-03-21 08:40:38 +0000
commit2d6776aa2cc50c1bd038f95ea465de672d994dd4 (patch)
treee6e47a2ca7e82d012a20a9b30b31afd11c866149
parentabe031827cbcb41d34df32368bcd0137545ca9fc (diff)
parentb6713459e8b33a5541343ca5f223f1d0a767b29f (diff)
Merge #341709 from ~kissiel/plainbox-provider-checkbox:fix-1755402-usb-insertionsnap-2018-03-26T1027
-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"