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

login
register
mail settings
Submitter Saul Wold
Date April 13, 2013, 4:55 p.m.
Message ID <1365872155-17548-1-git-send-email-sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/48121/
State Accepted
Commit be218292ee3f05afe47545aa8e1625452e0cd614
Headers show

Comments

Saul Wold - April 13, 2013, 4:55 p.m.
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]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-core/udev/udev-extraconf/mount.sh | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
index 99c76b2..97af608 100644
--- a/meta/recipes-core/udev/udev-extraconf/mount.sh
+++ b/meta/recipes-core/udev/udev-extraconf/mount.sh
@@ -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