Try to mount new filesystem w/ ext2 first, then ext3.
The new filesystems are ext2, so this is a straightforward fix.
TEST=tested before/after on device and saw which filesystem was used
BUG=11509
Change-Id: I9844780e9f369312bfd85d6a7e32e537c0a4a779
Review URL: http://codereview.chromium.org/6347053
diff --git a/postinstall_runner_action.cc b/postinstall_runner_action.cc
index c6320e1..80c28c9 100644
--- a/postinstall_runner_action.cc
+++ b/postinstall_runner_action.cc
@@ -32,11 +32,11 @@
unsigned long mountflags = MS_RDONLY;
int rc = mount(install_device.c_str(),
temp_rootfs_dir_.c_str(),
- "ext4",
+ "ext2",
mountflags,
NULL);
if (rc < 0) {
- LOG(INFO) << "Failed to mount install part as ext4. Trying ext3.";
+ LOG(INFO) << "Failed to mount install part as ext2. Trying ext3.";
rc = mount(install_device.c_str(),
temp_rootfs_dir_.c_str(),
"ext3",