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

Side by Side Diff: src/scripts/build_image.sh

Issue 521073: Use local apt cache instead of local_repo when mastering an image. (Closed)
Patch Set: Add comment, remove unused var. Created 10 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/scripts/common.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to build a bootable keyfob-based chromeos system image. 7 # Script to build a bootable keyfob-based chromeos system image.
8 # It uses debootstrap (see https://wiki.ubuntu.com/DebootstrapChroot) to 8 # It uses debootstrap (see https://wiki.ubuntu.com/DebootstrapChroot) to
9 # create a base file system. It then cusotmizes the file system and adds 9 # create a base file system. It then cusotmizes the file system and adds
10 # Ubuntu and chromeos specific packages. Finally, it creates a bootable USB 10 # Ubuntu and chromeos specific packages. Finally, it creates a bootable USB
(...skipping 15 matching lines...) Expand all
26 DEFINE_integer build_attempt 1 \ 26 DEFINE_integer build_attempt 1 \
27 "The build attempt for this image build." 27 "The build attempt for this image build."
28 DEFINE_string output_root "${DEFAULT_BUILD_ROOT}/images" \ 28 DEFINE_string output_root "${DEFAULT_BUILD_ROOT}/images" \
29 "Directory in which to place image result directories (named by version)" 29 "Directory in which to place image result directories (named by version)"
30 DEFINE_string build_root "$DEFAULT_BUILD_ROOT" \ 30 DEFINE_string build_root "$DEFAULT_BUILD_ROOT" \
31 "Root of build output" 31 "Root of build output"
32 DEFINE_boolean replace $FLAGS_FALSE "Overwrite existing output, if any." 32 DEFINE_boolean replace $FLAGS_FALSE "Overwrite existing output, if any."
33 DEFINE_boolean increment $FLAGS_FALSE \ 33 DEFINE_boolean increment $FLAGS_FALSE \
34 "Picks the latest build and increments the minor version by one." 34 "Picks the latest build and increments the minor version by one."
35 35
36 DEFINE_string mirror "$DEFAULT_IMG_MIRROR" "Repository mirror to use." 36 DEFINE_string mirror "$DEFAULT_EXT_MIRROR" "Repository mirror to use."
37 DEFINE_string suite "$DEFAULT_IMG_SUITE" "Repository suite to base image on." 37 DEFINE_string suite "$DEFAULT_IMG_SUITE" "Repository suite to base image on."
38 DEFINE_string pkglist "$DEFAULT_PKGLIST" \ 38 DEFINE_string pkglist "$DEFAULT_PKGLIST" \
39 "Name of file listing packages to install from repository." 39 "Name of file listing packages to install from repository."
40 40
41 # Parse command line 41 # Parse command line
42 FLAGS "$@" || exit 1 42 FLAGS "$@" || exit 1
43 eval set -- "${FLAGS_ARGV}" 43 eval set -- "${FLAGS_ARGV}"
44 44
45 # Die on any errors. 45 # Die on any errors.
46 set -e 46 set -e
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 EOF 169 EOF
170 170
171 OUTSIDE_OUTPUT_DIR="${EXTERNAL_TRUNK_PATH}/src/build/images/${IMAGE_SUBDIR}" 171 OUTSIDE_OUTPUT_DIR="${EXTERNAL_TRUNK_PATH}/src/build/images/${IMAGE_SUBDIR}"
172 echo "Done. Image created in ${OUTPUT_DIR}" 172 echo "Done. Image created in ${OUTPUT_DIR}"
173 echo "To copy to USB keyfob, outside the chroot, do something like:" 173 echo "To copy to USB keyfob, outside the chroot, do something like:"
174 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdb" 174 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdb"
175 echo "To convert to VMWare image, outside the chroot, do something like:" 175 echo "To convert to VMWare image, outside the chroot, do something like:"
176 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}" 176 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}"
177 177
178 trap - EXIT 178 trap - EXIT
OLDNEW
« no previous file with comments | « no previous file | src/scripts/common.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698