summaryrefslogtreecommitdiff
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-07-25 16:31:40 +0100
committerSaul Wold <sgw@linux.intel.com>2013-07-27 23:28:29 -0700
commit4174dcbd3328e6badb269d09b024f2b83408bd8c (patch)
tree77269c3d690c8a37169a288cb9c907b03cb2aaeb /meta/recipes-core/initrdscripts
parent4e85129a7d47baf3e32b815cbc277bff84e085a0 (diff)
downloadopenembedded-core-4174dcbd3328e6badb269d09b024f2b83408bd8c.tar.gz
openembedded-core-4174dcbd3328e6badb269d09b024f2b83408bd8c.tar.bz2
openembedded-core-4174dcbd3328e6badb269d09b024f2b83408bd8c.zip
Revert "initrdscripts: mount / as read-only when live-booting"
My test environment must have been messed up as now hddimgs are failing to re-mount / as read-write. This reverts commit 7af92f8fa3a12fc8fcb22dbd12f87d89768b2d39. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index c56c79abc2..890c56280a 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -157,7 +157,7 @@ mount_and_boot() {
case $union_fs_type in
"overlayfs")
mkdir -p /rootfs.ro /rootfs.rw
- if ! mount -o ro,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE /rootfs.ro; then
+ if ! mount -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE /rootfs.ro; then
rm -rf /rootfs.ro /rootfs.rw
fatal "Could not mount rootfs image"
else
@@ -170,7 +170,7 @@ mount_and_boot() {
;;
"aufs")
mkdir -p /rootfs.ro /rootfs.rw
- if ! mount -o ro,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE /rootfs.ro; then
+ if ! mount -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE /rootfs.ro; then
rm -rf /rootfs.ro /rootfs.rw
fatal "Could not mount rootfs image"
else
@@ -182,7 +182,7 @@ mount_and_boot() {
fi
;;
"")
- if ! mount -o ro,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE $ROOT_MOUNT ; then
+ if ! mount -o rw,loop,noatime,nodiratime /media/$i/$ISOLINUX/$ROOT_IMAGE $ROOT_MOUNT ; then
fatal "Could not mount rootfs image"
fi
;;