Just regular mount
* Something in log saving, or buildbot, or image_to_usb
damages the filesystem on /dev/sdb1. So opening it readonly
may fail.
BUG=chrome-os-partner:2422
TEST=run through install shim, success.
Change-Id: I0d90d0f17ba109c53dde4a328ac0acaa04896055
Review URL: http://codereview.chromium.org/6626034
diff --git a/init b/init
index f1d856a..b812fc1 100644
--- a/init
+++ b/init
@@ -308,7 +308,7 @@
STATEFUL_LSB="dev_image/etc/lsb-factory"
mkdir -p "${NEWROOT_MNT}/mnt/stateful_partition/dev_image/etc"
# Mounting ext3 as ext2 since the journal is unneeded in ro.
- if ! mount -n -o ro -t ext2 "${STATE_DEV}" "${STATEFUL_MNT}"; then
+ if ! mount -n "${STATE_DEV}" "${STATEFUL_MNT}"; then
log "Failed to mount ${STATE_DEV}!! Failing."
return 1
fi