Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: build_image

Issue 2865018: Increase stateful test partition size to 1G (Closed) Base URL: ssh://git@chromiumos-git/crosutils.git
Patch Set: patch Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_image
diff --git a/build_image b/build_image
index 235aed588956af81c137420e709fdbd4339d40e5..7303e9d4a942b8413dba22e06961842aecb4c01b 100755
--- a/build_image
+++ b/build_image
@@ -48,6 +48,8 @@ DEFINE_integer rootfs_partition_size 1024 \
"rootfs parition size in MBs."
DEFINE_integer rootfs_size 720 \
"rootfs filesystem size in MBs."
+DEFINE_integer statefulfs_size 1024 \
+ "stateful filesystem size in MBs."
DEFINE_boolean preserve ${FLAGS_FALSE} \
"Attempt to preserve the previous build image if one can be found (unstable, \
kernel/firmware not updated)"
@@ -358,7 +360,9 @@ create_base_image() {
echo "No free loop device. Free up a loop device or reboot. exiting. "
exit 1
fi
- dd if=/dev/zero of="${STATEFUL_FS_IMG}" bs=1 count=1 seek=$((ROOT_SIZE_BYTES - 1))
+ STATEFUL_SIZE_BYTES=$((1024 * 1024 * ${FLAGS_statefulfs_size}))
+ dd if=/dev/zero of="${STATEFUL_FS_IMG}" bs=1 count=1 \
+ seek=$((STATEFUL_SIZE_BYTES - 1))
sudo losetup "${STATEFUL_LOOP_DEV}" "${STATEFUL_FS_IMG}"
sudo mkfs.ext3 "${STATEFUL_LOOP_DEV}"
sudo tune2fs -L "C-STATE" -U "${UUID}" -c 0 -i 0 \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698