summaryrefslogtreecommitdiffstats
path: root/recipes-support/udisks/files/automount.sh
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-07-09 03:19:30 +0000
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-07-09 05:52:18 +0000
commitd1a3ac4fbbd235db1f3662d619f44d82c19fe716 (patch)
tree8739441d002fb945cd54e31cfcb4f496628a45cb /recipes-support/udisks/files/automount.sh
parent1f81a10af3d8c201d495fddc99a663595b6b89fa (diff)
udisks: make automount it's own service
To avoid a timeout condition in udisks.service the automount script needs to be ran as it's own systemd service. Bug-AGL: SPEC-735 Change-Id: Idbfb21b1a2fccfa55ac149830d4af591222b697d Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'recipes-support/udisks/files/automount.sh')
-rwxr-xr-xrecipes-support/udisks/files/automount.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-support/udisks/files/automount.sh b/recipes-support/udisks/files/automount.sh
index 8a3bc86d8..3e4b24b5f 100755
--- a/recipes-support/udisks/files/automount.sh
+++ b/recipes-support/udisks/files/automount.sh
@@ -6,7 +6,7 @@ pathtoname() {
MOUNT_OPTIONS="ro,sync"
-rmdir /media/* || true &> /dev/null
+rmdir /media/* &> /dev/null || true
for DEVNAME in $(udisks --enumerate-device-files|grep -e sd[a-z][0-9]); do
udisks --mount-options $MOUNT_OPTIONS --mount $DEVNAME
done