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

Unified Diff: image_to_vm.sh

Issue 3956005: Use minimums if options are too small. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 2 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: image_to_vm.sh
diff --git a/image_to_vm.sh b/image_to_vm.sh
index 087f2c9f97be832951f97a34554502450e7978d1..4131b052077acfd65167442f1689055cf7c116be 100755
--- a/image_to_vm.sh
+++ b/image_to_vm.sh
@@ -66,9 +66,11 @@ fi
if [ "${FLAGS_full}" -eq "${FLAGS_TRUE}" ] && \
( [[ ${FLAGS_vdisk_size} < ${MIN_VDISK_SIZE_FULL} ]] || \
[[ ${FLAGS_statefulfs_size} < ${MIN_STATEFUL_FS_SIZE_FULL} ]]); then
- die "Disk is too small for full, please select a vdisk size greater than \
-${MIN_VDISK_SIZE_FULL} and statefulfs size greater than \
+ warn "Disk is too small for full, using minimu: vdisk size equal to \
petkov 2010/10/22 19:33:24 minimum
+${MIN_VDISK_SIZE_FULL} and statefulfs size equal to \
${MIN_STATEFUL_FS_SIZE_FULL}."
+ FLAGS_vdisk_size=${MIN_VDISK_SIZE_FULL}
+ FLAGS_statefulfs_size=${MIN_STATEFUL_FS_SIZE_FULL}
fi
IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images/${FLAGS_board}"
« 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