diff options
| -rw-r--r-- | meta/recipes-core/udev/udev-extraconf/mount.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 40910be8bd..c4695ee27d 100644 --- a/meta/recipes-core/udev/udev-extraconf/mount.sh +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh | |||
| @@ -126,7 +126,10 @@ automount() { | |||
| 126 | rm_dir "$MOUNT_BASE/$name" | 126 | rm_dir "$MOUNT_BASE/$name" |
| 127 | else | 127 | else |
| 128 | logger "mount.sh/automount" "Auto-mount of [$MOUNT_BASE/$name] successful" | 128 | logger "mount.sh/automount" "Auto-mount of [$MOUNT_BASE/$name] successful" |
| 129 | touch "/tmp/.automount-$name" | 129 | # The actual device might not be present in the remove event so blkid cannot |
| 130 | # be used to calculate what name was generated here. Simply save the mount | ||
| 131 | # name in our tmp file. | ||
| 132 | echo "$name" > "/tmp/.automount-$name" | ||
| 130 | fi | 133 | fi |
| 131 | } | 134 | } |
| 132 | 135 | ||
