Add -H option to find of automount files in /tmp to allow find to follow /tmp if it is a symlink to a volatile file system. This option also avoids following any links within /tmp.
Otherwise the find for the automount tmp file does not work which prevents the removal of the automount directory. Then subsequent auto-mounts fail. Signed-off-by: Jate Sujjavanich <[email protected]> --- meta/recipes-core/udev/udev-extraconf/mount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 3ddee84b78..81c5d1c58c 100644 --- a/meta/recipes-core/udev/udev-extraconf/mount.sh +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh @@ -207,7 +207,7 @@ fi if [ "$ACTION" = "remove" ] || [ "$ACTION" = "change" ] && [ -x "$UMOUNT" ] && [ -n "$DEVNAME" ]; then name="`basename "$DEVNAME"`" - tmpfile=`find /tmp | grep "\.automount-.*${name}$"` + tmpfile=`find -H /tmp | grep "\.automount-.*${name}$"` if [ ! -e "/sys/$DEVPATH" -a -e "$tmpfile" ]; then logger "mount.sh/remove" "cleaning up $DEVNAME, was mounted by the auto-mounter" for mnt in `cat /proc/mounts | grep "$DEVNAME" | cut -f 2 -d " " ` -- 2.39.5
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#237523): https://lists.openembedded.org/g/openembedded-core/message/237523 Mute This Topic: https://lists.openembedded.org/mt/119435338/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
