Bug 4774

Summary: /media diretory cleanup
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Chen Qi <Qi.Chen>
Component: coreAssignee: Chen Qi <Qi.Chen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Low CC: liezhi.yang, mark.hatle, meta.mr.watcher, meta.watcher, richard.purdie, sgw, yi.zhao
Version: 1.4   
Target Milestone: 1.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

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