Bug 4881 - Cannot move the mount of /media/xxx over to $ROOT_DIR/media/xxx in live image
Summary: Cannot move the mount of /media/xxx over to $ROOT_DIR/media/xxx in live image
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M4
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-07-22 02:22 UTC by Chen Qi
Modified: 2013-08-19 01:48 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chen Qi 2013-07-22 02:22:27 UTC
If the live image is mounted as read-only, we cannot make necessary directories under $ROOT_DIR/media, thus trying to move the mount points lead to errors.

If the rootfs is mounted as read-only, the media directory should be a mount point for tmpfs, such that it allows making directories under it.

I'll send out a patch after Ross Burton's patch has been merged, as it is somewhat related.
[OE-core] [PATCH] initrdscripts: mount / as read-only when live-booting

//Chen Qi
Comment 1 Chen Qi 2013-08-19 01:48:35 UTC
Commit: aeeb3418ff08dfd29edc0ce8a41cb6887d4e11fe
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=aeeb3418ff08dfd29edc0ce8a41cb6887d4e11fe