mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 07:31:01 +02:00
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:
parent
18d3476a41
commit
396306edea
@ -92,9 +92,6 @@ patch_kernel() {
|
|||||||
STATE_LOOP_DEV=""
|
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 image "" "The image that should be sent to clients."
|
||||||
DEFINE_string src_image "" "Optional: a source image. If specified, this makes\
|
DEFINE_string src_image "" "Optional: a source image. If specified, this makes\
|
||||||
a delta update."
|
a delta update."
|
||||||
@ -109,6 +106,11 @@ eval set -- "${FLAGS_ARGV}"
|
|||||||
|
|
||||||
set -e
|
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
|
locate_gpt
|
||||||
|
|
||||||
DELTA=$FLAGS_TRUE
|
DELTA=$FLAGS_TRUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user