generic-poky/meta/recipes-core/busybox
mike.looijmans@topic.nl 973c565a7e busybox-mdev: Support automatic mounting of block devices
Upon inserting a USB stick or similar device, mdev will run
an automounter script that mounts valid partitions on
/media/<device>. The script first checks /etc/fstab entries
so that mounting on UUID or LABEL or using custom mount options
is still possible. If /etc/fstab does not contain particular
mount options, the script will create (and remove) the mountpoint
automatically.
The script also supports full disk partitions (devices without
partition table).

The following environments can be set in /etc/default/mdev:
MDEV_AUTOMOUNT=n (Disables automounting completely)
MDEV_AUTOMOUNT_ROOT=/media (Change the mount root location)

Automatic mounting for a particular device can be disabled by
creating a file "/dev/<device>.nomount". This is helpful in
scripts that create partitions for example, and want to perform
specific actions which require the device to remain unmounted.

A more complex variation (using LABEL based mounts) on this script
has been in use in OpenPLi for many years now, and I've used this
one on many projects already, so it's about time to push this to
mainline.

(From OE-Core rev: 19073fb991b3e2d2304e55f94e30674adf375197)

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-12-19 18:08:03 +00:00
..
busybox Revert "busybox : fix do_compile failed on qemumips when DEBUG_BUILD (ICE)" 2014-12-05 18:01:06 +00:00
files busybox-mdev: Support automatic mounting of block devices 2014-12-19 18:08:03 +00:00
busybox.inc busybox-mdev: Support automatic mounting of block devices 2014-12-19 18:08:03 +00:00
busybox_1.22.1.bb busybox-mdev: Support automatic mounting of block devices 2014-12-19 18:08:03 +00:00
busybox_git.bb busybox-mdev: Support automatic mounting of block devices 2014-12-19 18:08:03 +00:00