From 881f4b9bdd44bd4849155f54915eb5aed005869d Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Sat, 13 Apr 2013 09:55:55 -0700 Subject: 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] (From OE-Core rev: 796e1390487d602c55467d7654f52e43a4617548) Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-core/udev/udev-extraconf/mount.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 2eb9affcc8..3e16e31b03 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 -- cgit v1.2.3-54-g00ecf