From: Matt Ranostay Date: Thu, 12 Oct 2017 06:09:55 +0000 (+0300) Subject: udisk: automount: correct automount on bootup X-Git-Tag: 4.99.1~4 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=e3a4827db9283ec9a037d76e225cb4d32fb46f00;hp=79f20038c1b67c33c752fa026d8be75104bacd79;p=AGL%2Fmeta-agl-demo.git 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 --- 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