summaryrefslogtreecommitdiff
diff options
authorMaciej Kisielewski <maciej.kisielewski@canonical.com>2017-12-11 11:55:04 +0100
committerMaciej Kisielewski <maciej.kisielewski@canonical.com>2017-12-11 14:24:02 +0100
commit6bb0cbef0a41677511f0626f429608ae8070a6b0 (patch)
tree8f5845b3503eb1a89b6c98fc4a6df7c0ab7dd05c
parent2a5a5d4e946dd9c3ef762c7ddc91cb9cd8e4a462 (diff)
detect inserted usb drives even if they're not automounted
fixes: LP:1657659 Signed-off-by: Maciej Kisielewski <maciej.kisielewski@canonical.com>
-rw-r--r--units/usb/usb.pxu8
1 files changed, 4 insertions, 4 deletions
diff --git a/units/usb/usb.pxu b/units/usb/usb.pxu
index 6615401..64950ef 100644
--- a/units/usb/usb.pxu
+++ b/units/usb/usb.pxu
@@ -62,7 +62,7 @@ command:
if [[ -v SNAP ]]; then
checkbox-support-run_watcher insertion usb2
else
- removable_storage_watcher insert usb
+ removable_storage_watcher --unmounted insert usb
fi
category_id: com.canonical.plainbox::usb
estimated_duration: 120
@@ -85,7 +85,7 @@ command:
if [[ -v SNAP ]]; then
checkbox-support-run_watcher insertion usb3
else
- removable_storage_watcher -m 500000000 insert usb
+ removable_storage_watcher --unmounted -m 500000000 insert usb
fi
category_id: com.canonical.plainbox::usb
estimated_duration: 120
@@ -108,7 +108,7 @@ command:
if [[ -v SNAP ]]; then
checkbox-support-run_watcher removal usb2
else
- removable_storage_watcher remove usb
+ removable_storage_watcher --unmounted remove usb
fi
category_id: com.canonical.plainbox::usb
estimated_duration: 120
@@ -131,7 +131,7 @@ command:
if [[ -v SNAP ]]; then
checkbox-support-run_watcher removal usb3
else
- removable_storage_watcher -m 500000000 remove usb
+ removable_storage_watcher --unmounted -m 500000000 remove usb
fi
category_id: com.canonical.plainbox::usb
estimated_duration: 120