Message ID | 20220620131756.269638-1-muhammad_hamza@mentor.com |
---|---|
State | Accepted, archived |
Commit | 496b76f8775a620c1d449eb6f62a41656abf2a9b |
Headers | show |
Series | [1/2] udev-extraconf/mount.sh: save mount name in our tmp filecache | expand |
diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 12c6a5af22..994de75b28 100644 --- a/meta/recipes-core/udev/udev-extraconf/mount.sh +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh @@ -140,7 +140,10 @@ automount() { rm_dir "$MOUNT_BASE/$name" else logger "mount.sh/automount" "Auto-mount of [$MOUNT_BASE/$name] successful" - touch "/tmp/.automount-$name" + # The actual device might not be present in the remove event so blkid cannot + # be used to calculate what name was generated here. Simply save the mount + # name in our tmp file. + echo "$name" > "/tmp/.automount-$name" fi }