[oe-commits] Saul Wold : udev-extraconf: Add -o silent to auto mount for mount. util-linux

git at git.openembedded.org git at git.openembedded.org
Sat Apr 13 22:51:13 UTC 2013


Module: openembedded-core.git
Branch: dylan
Commit: be218292ee3f05afe47545aa8e1625452e0cd614
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=be218292ee3f05afe47545aa8e1625452e0cd614

Author: Saul Wold <sgw at linux.intel.com>
Date:   Sat Apr 13 09:55:55 2013 -0700

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]

Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-core/udev/udev-extraconf/mount.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

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





More information about the Openembedded-commits mailing list