Skip to contentSkip to conversation

udev-extraconf: Add -o silent to auto mount for mount.util-linux

PATCH New Saul Wold 1 participant 1 message Apr 13, 2013

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 udev-extraconf: Add -o silent to auto mount for mount.util-linux

This will silence some of the noisy output from mount.util-linux and the kernel when trying to automount filesystems or devices. Busybox does not accept the silent option, it uses a loud option instead.

[YOCTO #3935]

---
 meta/recipes-core/udev/udev-extraconf/mount.sh | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-core/udev/udev-extraconf/mount.sh +5 -0
index 99c76b2..97af608 100644
@@ -21,6 +21,11 @@ automount() {
 	name="`basename "$DEVNAME"`"
 
 	! test -d "/media/$name" && mkdir -p "/media/$name"
+	# Silent util-linux's version of mounting auto
+	if [ "x`readlink $MOUNT`" = "x/bin/mount.util-linux" ] ;
+	then
+		MOUNT="$MOUNT -o silent"
+	fi
 	
 	if ! $MOUNT -t auto $DEVNAME "/media/$name"
 	then
Signature · 1 line
1.8.0.2