udisk: automount: correct automount on bootup 37/11237/2
authorMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 12 Oct 2017 06:09:55 +0000 (09:09 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 12 Oct 2017 17:21:40 +0000 (17:21 +0000)
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>
recipes-support/udisks/files/automount.sh

index 3e4b24b..23e0456 100755 (executable)
@@ -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