Revert "initrdscripts: mount / as read-only when live-booting"
authorRoss Burton <ross.burton@intel.com>
Thu, 25 Jul 2013 15:31:40 +0000 (16:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Jul 2013 12:09:15 +0000 (13:09 +0100)
My test environment must have been messed up as now hddimgs are failing to
re-mount / as read-write.

This reverts commit 7af92f8fa3a12fc8fcb22dbd12f87d89768b2d39.

(From OE-Core rev: 4174dcbd3328e6badb269d09b024f2b83408bd8c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-live.sh

index c56c79a..890c562 100644 (file)
@@ -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
            ;;