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

Unified Diff: cros_generate_update_payload

Issue 3359014: AU: when generating payload, only delta generation needs to be in chroot (Closed) Base URL: ssh://git@chromiumos-git/crosutils.git
Patch Set: Created 10 years, 3 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: cros_generate_update_payload
diff --git a/cros_generate_update_payload b/cros_generate_update_payload
index ad63fd73d6eff3bd248bf8e26548e65017a7d801..0699f09f475cfc8b0a5a793105b0c9b7a10581f5 100755
--- a/cros_generate_update_payload
+++ b/cros_generate_update_payload
@@ -92,9 +92,6 @@ patch_kernel() {
STATE_LOOP_DEV=""
}
-# We should be in the chroot.
-assert_inside_chroot
-
DEFINE_string image "" "The image that should be sent to clients."
DEFINE_string src_image "" "Optional: a source image. If specified, this makes\
a delta update."
@@ -109,6 +106,11 @@ eval set -- "${FLAGS_ARGV}"
set -e
+if [ -n "$FLAGS_src_image" ]; then
+ # We need to be in the chroot for generating delta images
+ assert_inside_chroot
+fi
+
locate_gpt
DELTA=$FLAGS_TRUE
« 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