mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
udev-extraconf/mount.sh: save mount name in our tmp filecache
Doing this will allow to fetch the exact name created by the auto-mounter during the remove action where depending on the scenario utilities such as the blkid might not be usable due to actual device not being present on the system. (From OE-Core rev: 496b76f8775a620c1d449eb6f62a41656abf2a9b) Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
aab4152eff
commit
27b5d5ad5b
@@ -126,7 +126,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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user