]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
udev-extraconf: fix unmount directories containing octal-escaped chars
authorJonathan GUILLOT <jonathan@joggee.fr>
Wed, 24 Jan 2024 13:29:19 +0000 (13:29 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Jan 2024 14:56:41 +0000 (14:56 +0000)
commit37f17625d931a06888388682dc2b1f5a2d298125
tree1fc357b3018ef7020fa2107df209b1ce57c6c431
parent301d45eacfd4ae6bddfb13207e2af9e8b4662bc8
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.

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>
meta/recipes-core/udev/udev-extraconf/mount.sh