From e3a4827db9283ec9a037d76e225cb4d32fb46f00 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Thu, 12 Oct 2017 09:09:55 +0300 Subject: 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 --- recipes-support/udisks/files/automount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes-support') 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 -- cgit 1.2.3-korg