* [PATCH] udev-extraconf: Add -o silent to auto mount for mount.util-linux
@ 2013-04-13 16:55 Saul Wold
0 siblings, 0 replies; only message in thread
From: Saul Wold @ 2013-04-13 16:55 UTC (permalink / raw)
To: openembedded-core
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>
---
| 5 +++++
1 file changed, 5 insertions(+)
--git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
index 99c76b2..97af608 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
--
1.8.0.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-13 17:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-13 16:55 [PATCH] udev-extraconf: Add -o silent to auto mount for mount.util-linux Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox