udev-extraconf: Add -o silent to auto mount for mount.util-linux
authorSaul Wold <sgw@linux.intel.com>
Sat, 13 Apr 2013 16:55:55 +0000 (09:55 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 13 Apr 2013 22:54:19 +0000 (23:54 +0100)
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: be218292ee3f05afe47545aa8e1625452e0cd614)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev-extraconf/mount.sh

index 99c76b2..97af608 100644 (file)
@@ -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