diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-07-29 10:05:04 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-16 11:14:14 +0100 |
commit | aeeb3418ff08dfd29edc0ce8a41cb6887d4e11fe (patch) | |
tree | e084dd1bf40f9705defddb4890782590a59b0bc0 /meta | |
parent | c5ef0294a9b8d178896a47c9f5d6e3dd6797e343 (diff) | |
download | openembedded-core-aeeb3418ff08dfd29edc0ce8a41cb6887d4e11fe.tar.gz openembedded-core-aeeb3418ff08dfd29edc0ce8a41cb6887d4e11fe.tar.bz2 openembedded-core-aeeb3418ff08dfd29edc0ce8a41cb6887d4e11fe.zip |
init-live.sh: make $ROOT_MOUNT/media writable when necessary
If the live image is mounted as read-only, we cannot make necessary
directories under $ROOT_MOUNT/media, so trying to move the mount points
lead to errors.
So in case that no unification filesystem mechanism is available in kernel
and the rootfs is mounted as read-only, we mount tmpfs on $ROOT_MOUNT/media
so that it's possible to make necessary directories under it.
[YOCTO #4881]
[YOCTO #4103]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-live.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh index 890c56280a..861d874657 100644 --- a/meta/recipes-core/initrdscripts/files/init-live.sh +++ b/meta/recipes-core/initrdscripts/files/init-live.sh @@ -184,6 +184,8 @@ mount_and_boot() { "") if ! mount -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE $ROOT_MOUNT ; then fatal "Could not mount rootfs image" + else + mount -t tmpfs -o rw,noatime,mode=755 tmpfs $ROOT_MOUNT/media fi ;; esac |