aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/udev
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-04-13 09:55:55 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-13 23:54:14 +0100
commitbe218292ee3f05afe47545aa8e1625452e0cd614 (patch)
treec8509efcf8b6372b903039a8b6d034fd2b071d59 /meta/recipes-core/udev
parentdfb0c2cf9799d084a76aa92e243c743d7ff05db8 (diff)
downloadopenembedded-core-be218292ee3f05afe47545aa8e1625452e0cd614.tar.gz
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@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/udev')
-rw-r--r--meta/recipes-core/udev/udev-extraconf/mount.sh5
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 99c76b2530..97af608398 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