summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-07-29 10:05:04 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-16 11:14:34 +0100
commit7ab93ec66424282693be45e1e4a222c8bf3b3726 (patch)
treea4e368041bdd4321e89af52571fb2cb82b9527f4 /meta/recipes-core/initrdscripts
parent771f794eed69a4e594fa2c9a4fc167f7bde623e3 (diff)
downloadpoky-7ab93ec66424282693be45e1e4a222c8bf3b3726.tar.gz
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] (From OE-Core rev: aeeb3418ff08dfd29edc0ce8a41cb6887d4e11fe) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh2
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() {
184 "") 184 "")
185 if ! mount -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE $ROOT_MOUNT ; then 185 if ! mount -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE $ROOT_MOUNT ; then
186 fatal "Could not mount rootfs image" 186 fatal "Could not mount rootfs image"
187 else
188 mount -t tmpfs -o rw,noatime,mode=755 tmpfs $ROOT_MOUNT/media
187 fi 189 fi
188 ;; 190 ;;
189 esac 191 esac