make_dev_ssd: fix the offset for enable_rw_mount

The rootfs offset was not converted to bytes. This changes fixes that.

BUG=none
TEST=ran it on an image and it found the ext2 magic

Change-Id: I814c3b89bf5246e3ceab851f80c4a4d4d7e63919

Review URL: http://codereview.chromium.org/4071002
This commit is contained in:
Will Drewry
2010-10-22 09:06:42 -05:00
parent aaae959412
commit f5529068ec

View File

@@ -225,7 +225,7 @@ main() {
# Make the root filesystem remountable if needed.
if [ ${FLAGS_remove_rootfs_verification} = $FLAGS_TRUE ]; then
local root_offset=$(partoffset "$FLAGS_image" 3)
enable_rw_mount "$FLAGS_image" "$root_offset"
enable_rw_mount "$FLAGS_image" "$((root_offset * 512))"
fi
resign_ssd_kernel "$FLAGS_image" || num_signed=$?