From: Ming Liu Date: Wed, 20 Jul 2022 10:10:51 +0000 (+0200) Subject: udev-extraconf:mount.sh: fix a umount issue X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3519 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccea69032329f3ba43c727d9eb71b1d063b89824;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git udev-extraconf:mount.sh: fix a umount issue 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 Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 43acb3a7a02..b7e86dbc0e6 100644 --- a/meta/recipes-core/udev/udev-extraconf/mount.sh +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh @@ -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 }