From f5529068ecbfc6770233ab76a04849d879067ee8 Mon Sep 17 00:00:00 2001 From: Will Drewry Date: Fri, 22 Oct 2010 09:06:42 -0500 Subject: [PATCH] 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 --- scripts/image_signing/make_dev_ssd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/image_signing/make_dev_ssd.sh b/scripts/image_signing/make_dev_ssd.sh index 458a37f0e4..7139c0d5ae 100755 --- a/scripts/image_signing/make_dev_ssd.sh +++ b/scripts/image_signing/make_dev_ssd.sh @@ -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=$?