[OE-core] [PATCH 1/2] busybox-mdev: Support automatic mounting of block devices
Mike Looijmans
mike.looijmans at topic.nl
Thu Dec 18 06:31:11 UTC 2014
On 12/17/2014 11:08 PM, Gary Thomas wrote:
> On 2014-12-17 15:03, Burton, Ross wrote:
>> Hi Mike,
>>
>> On 5 December 2014 at 09:58, Mike Looijmans <mike.looijmans at topic.nl
>> <mailto:mike.looijmans at topic.nl>> wrote:
>>
>> 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).
>>
>>
>> Thanks for this, but can this script be put into a separate recipe to make
>> it even easier for people who don't want it, or want their own version? The
>> prior art here is the udev
>> automounting script which is in udev-extraconf.
>
> Also it would be nice if the path matched the most recent
> use in udev which is /run/media/<device>
Of course, these locations need to move around every few years, otherwise
people would be expecting things to remain in place...
I'd rather keep using the /media symlink, as it gives distributions a chance
to move things around.
On the satellite settop boxes, /media is a 64k tmpfs mount. This is because
when a mount fails, the box may end up writing a TV recording to wherever
/media happens to be. It that's flash or a big tmpfs, the box will commit
suicide in mere seconds by either filling the flash or eating up the precious
RAM. And for some things, the box really needs a big tmpfs, so just reducing
the volatiles' sizes wasn't an option.
Having said that, if this is blocking, I'll do a s./media./run/media.g on the
file, getting this mainlined has higher priority.
M.
Met vriendelijke groet / kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Systems
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax: (+31) (0) 499 33 69 70
E-mail: mike.looijmans at topic.nl
Website: www.topic.nl
Please consider the environment before printing this e-mail
Topic zoekt gedreven (embedded) software specialisten!
http://topic.nl/vacatures/topic-zoekt-software-engineers/
More information about the Openembedded-core
mailing list