summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/udev/udev-extraconf/mount.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
index 8b6ce77741..43acb3a7a0 100644
--- a/meta/recipes-core/udev/udev-extraconf/mount.sh
+++ b/meta/recipes-core/udev/udev-extraconf/mount.sh
@@ -40,11 +40,14 @@ automount_systemd() {
40 name="`basename "$DEVNAME"`" 40 name="`basename "$DEVNAME"`"
41 41
42 # Skip already mounted partitions 42 # Skip already mounted partitions
43 if [ -f /run/systemd/transient/run-media-$name.mount ]; then 43 if [ -f /run/systemd/transient/$(echo $MOUNT_BASE | cut -d '/' -f 2- | sed 's#/#-#g')-*$name.mount ]; then
44 logger "mount.sh/automount" "$MOUNT_BASE/$name already mounted" 44 logger "mount.sh/automount" "$MOUNT_BASE/$name already mounted"
45 return 45 return
46 fi 46 fi
47 47
48 # Get the unique name for mount point
49 get_label_name "${DEVNAME}"
50
48 # Only go for auto-mounting when the device has been cleaned up in remove 51 # Only go for auto-mounting when the device has been cleaned up in remove
49 # or has not been identified yet 52 # or has not been identified yet
50 if [ -e "/tmp/.automount-$name" ]; then 53 if [ -e "/tmp/.automount-$name" ]; then
@@ -61,9 +64,6 @@ automount_systemd() {
61 grep "^[[:space:]]*$tmp" /etc/fstab && return 64 grep "^[[:space:]]*$tmp" /etc/fstab && return
62 done 65 done
63 66
64 # Get the unique name for mount point
65 get_label_name "${DEVNAME}"
66
67 [ -d "$MOUNT_BASE/$name" ] || mkdir -p "$MOUNT_BASE/$name" 67 [ -d "$MOUNT_BASE/$name" ] || mkdir -p "$MOUNT_BASE/$name"
68 68
69 MOUNT="$MOUNT -o silent" 69 MOUNT="$MOUNT -o silent"