From 6bb0cbef0a41677511f0626f429608ae8070a6b0 Mon Sep 17 00:00:00 2001 From: Maciej Kisielewski Date: Mon, 11 Dec 2017 11:55:04 +0100 Subject: detect inserted usb drives even if they're not automounted fixes: LP:1657659 Signed-off-by: Maciej Kisielewski --- units/usb/usb.pxu | 8 ++++---- 1 file 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 -- cgit v1.2.3