diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-04-13 09:55:55 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-08 12:03:16 +0100 |
commit | 881f4b9bdd44bd4849155f54915eb5aed005869d (patch) | |
tree | ea5883019404debe9de87662117da5162f76163e | |
parent | e26f12af028e9b4b42ff06e58605adac7133214b (diff) | |
download | poky-881f4b9bdd44bd4849155f54915eb5aed005869d.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]
(From OE-Core rev: 796e1390487d602c55467d7654f52e43a4617548)
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.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 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() { | |||
21 | name="`basename "$DEVNAME"`" | 21 | name="`basename "$DEVNAME"`" |
22 | 22 | ||
23 | ! test -d "/media/$name" && mkdir -p "/media/$name" | 23 | ! test -d "/media/$name" && mkdir -p "/media/$name" |
24 | # Silent util-linux's version of mounting auto | ||
25 | if [ "x`readlink $MOUNT`" = "x/bin/mount.util-linux" ] ; | ||
26 | then | ||
27 | MOUNT="$MOUNT -o silent" | ||
28 | fi | ||
24 | 29 | ||
25 | if ! $MOUNT -t auto $DEVNAME "/media/$name" | 30 | if ! $MOUNT -t auto $DEVNAME "/media/$name" |
26 | then | 31 | then |