aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-04-13 09:55:55 -0700
committerRoss Burton <ross.burton@intel.com>2013-05-03 11:17:22 +0100
commit796e1390487d602c55467d7654f52e43a4617548 (patch)
treeb951bb9906e11c7a7826d3515f1ad757633d52f1
parentfeafff8c529b659ba2b70d32e9f99cd95edde113 (diff)
downloadopenembedded-core-796e1390487d602c55467d7654f52e43a4617548.zip
openembedded-core-796e1390487d602c55467d7654f52e43a4617548.tar.gz
openembedded-core-796e1390487d602c55467d7654f52e43a4617548.tar.bz2
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>
-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 2eb9aff..3e16e31 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