Skip to contentSkip to conversation

udev-extraconf:mount.sh: fix a umount issue

PATCH New [email protected] 1 participant 1 message Jul 20, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev-extraconf:mount.sh: fix a umount issue

From: Ming Liu <[email protected]>

Only touching /tmp/.automount-$name is not good enough, it must contain the mount name, otherwise umount could not get the path from it.

---
 meta/recipes-core/udev/udev-extraconf/mount.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/udev/udev-extraconf/mount.sh +1 -1
index 43acb3a7a0..b7e86dbc0e 100644
@@ -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
 }
 
Signature · 1 line
2.25.1