AU: when generating payload, only delta generation needs to be in chroot

BUG=chromium-os:6517
TEST=generated full payload outside chroot

Review URL: http://codereview.chromium.org/3359014
This commit is contained in:
Andrew de los Reyes 2010-09-15 19:19:04 -07:00
parent 18d3476a41
commit 396306edea

View File

@ -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