]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
udev-extraconf:mount.sh: fix a umount issue
authorMing Liu <liu.ming50@gmail.com>
Wed, 20 Jul 2022 10:10:51 +0000 (12:10 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Jul 2022 12:55:13 +0000 (13:55 +0100)
Only touching /tmp/.automount-$name is not good enough, it must contain
the mount name, otherwise umount could not get the path from it.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev-extraconf/mount.sh

index 43acb3a7a021ebb33f60257de5b6c6840c54dd94..b7e86dbc0e61db6e81e4f10f149963ad6dcb72a1 100644 (file)
@@ -89,7 +89,7 @@ automount_systemd() {
         rm_dir "$MOUNT_BASE/$name"
     else
         logger "mount.sh/automount" "Auto-mount of [$MOUNT_BASE/$name] successful"
-        touch "/tmp/.automount-$name"
+        echo "$name" > "/tmp/.automount-$name"
     fi
 }