From 1c9436c3521202b7db7ea67252ee0f5c7f95664d Mon Sep 17 00:00:00 2001 From: rickwu4444 Date: Mon, 5 Sep 2022 11:49:07 +0800 Subject: Fix: sd insert for classic image lp1979698 Since sd card won't auto mount in classic image. Need add parameter --unmounted for this kind of scenario --- units/mediacard/jobs.pxu | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/units/mediacard/jobs.pxu b/units/mediacard/jobs.pxu index 2d6aa83..1084fab 100644 --- a/units/mediacard/jobs.pxu +++ b/units/mediacard/jobs.pxu @@ -76,7 +76,7 @@ command: {%- if __on_ubuntucore__ %} checkbox-support-run_watcher insertion mediacard {%- else %} - removable_storage_watcher.py --memorycard insert sdio usb scsi + removable_storage_watcher.py --memorycard insert sdio usb scsi --unmounted {% endif -%} imports: from com.canonical.plainbox import manifest requires: @@ -124,7 +124,7 @@ command: {%- if __on_ubuntucore__ %} checkbox-support-run_watcher removal mediacard {%- else %} - removable_storage_watcher.py --memorycard remove sdio usb scsi + removable_storage_watcher.py --memorycard remove sdio usb scsi --unmounted {% endif -%} user: root _summary: Test that removal of an SD card is detected @@ -179,7 +179,7 @@ command: {%- if __on_ubuntucore__ %} checkbox-support-run_watcher insertion mediacard {%- else %} - removable_storage_watcher.py --memorycard insert sdio usb scsi + removable_storage_watcher.py --memorycard insert sdio usb scsi --unmounted {% endif -%} imports: from com.canonical.plainbox import manifest requires: @@ -228,7 +228,7 @@ command: {%- if __on_ubuntucore__ %} checkbox-support-run_watcher removal mediacard {%- else %} - removable_storage_watcher.py --memorycard remove sdio usb scsi + removable_storage_watcher.py --memorycard remove sdio usb scsi --unmounted {% endif -%} user: root _summary: Test that removal of an SDHC card is detected @@ -321,7 +321,7 @@ command: {%- if __on_ubuntucore__ %} checkbox-support-run_watcher insertion mediacard {%- else %} - removable_storage_watcher.py --memorycard insert sdio usb scsi + removable_storage_watcher.py --memorycard insert sdio usb scsi --unmounted {% endif -%} imports: from com.canonical.plainbox import manifest requires: @@ -369,7 +369,7 @@ command: {%- if __on_ubuntucore__ %} checkbox-support-run_watcher removal mediacard {%- else %} - removable_storage_watcher.py --memorycard remove sdio usb scsi + removable_storage_watcher.py --memorycard remove sdio usb scsi --unmounted {% endif -%} user: root _summary: Test that removal of an SDXC card is detected -- cgit v1.2.3