Bug 4774 - /media diretory cleanup
Summary: /media diretory cleanup
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Low normal
Target Milestone: 1.5 M2
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-06-25 07:37 UTC by Chen Qi
Modified: 2013-07-09 03:05 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chen Qi 2013-06-25 07:37:45 UTC
A few directories under /media are created by default, /media/card, /media/mmc, /media/realroot, etc.
It seems to try to create every possible directory under /media that our system might need to use or create. I can't quite understant this strategy. If some automount mechanism is available in the distro, it will take care of the creation of proper directories, which are not necessarily located under /media (/mnt is another reasonable choice). If no automount mechanism is available in system, then the choice is left to the user. In this situation, he/she can create directories he wants.
To conclude, I think it's safe to remove them from base-files.

Besides, an extra tmpfs is mounted over /media/ram for sysvinit based system. From my understanding, it brings no benefit. So I think we remove the corresponding entry from fstabs.
Comment 1 Chen Qi 2013-07-09 03:05:02 UTC
merged into poky/master: 2ed1c03b2459054f0145a77e065b0304bc5da9cb

http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=458e76e470966d759067b2f6e6f00fa75a2963f3