aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-support
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-10-12 09:09:55 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-10-12 17:21:40 +0000
commite3a4827db9283ec9a037d76e225cb4d32fb46f00 (patch)
tree20b3389435ceb0ea4a3e3975d1d2bd105e6292fb /recipes-support
parent79f20038c1b67c33c752fa026d8be75104bacd79 (diff)
udisk: automount: correct automount on bootup
Having the drive mounted ro,sync was causing the label not to be picked up with vfat filesystems on boot but ro,flush solves this. Which is the more correct solution since it is mounted read only. Bug-AGL: SPEC-947 Change-Id: I336c1db17a16902003a989d0e4dd76ee12c831b6 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'recipes-support')
-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 3e4b24b5f..23e0456af 100755
--- a/recipes-support/udisks/files/automount.sh
+++ b/recipes-support/udisks/files/automount.sh
@@ -4,7 +4,7 @@ pathtoname() {
udevadm info -p /sys/"$1" | awk -v FS== '/DEVNAME/ {print $2}'
}
-MOUNT_OPTIONS="ro,sync"
+MOUNT_OPTIONS="ro,flush"
rmdir /media/* &> /dev/null || true
for DEVNAME in $(udisks --enumerate-device-files|grep -e sd[a-z][0-9]); do