mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
udev-extraconf: fix unmount directories containing octal-escaped chars
USB devices are auto-mounted in a directory named like theirs labels. Special characters like whitespace are octal-escaped in /proc/mounts output. Using directly this output file as an argument for umount failed and the mount directory can't be removed as still busy. Using printf allows these special characters to be unescaped. (From OE-Core rev: 37f17625d931a06888388682dc2b1f5a2d298125) Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d46ca2a776
commit
b219e0c9ff
@@ -211,7 +211,7 @@ if [ "$ACTION" = "remove" ] || [ "$ACTION" = "change" ] && [ -x "$UMOUNT" ] && [
|
||||
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 " " `
|
||||
do
|
||||
$UMOUNT $mnt
|
||||
$UMOUNT "`printf $mnt`"
|
||||
done
|
||||
# Remove mount directory created by the auto-mounter
|
||||
# and clean up our tmp cache file
|
||||
|
||||
Reference in New Issue
Block a user