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

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

Issue 460118: Split Continuous/User build and provide useful version information for continuous builder (Closed)
Patch Set: versioning Created 11 years 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 | « src/scripts/archive_build.sh ('k') | src/scripts/chromeos_version.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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 CUST_OPTS="${SETUP_DIR}/customize_opts.sh" 209 CUST_OPTS="${SETUP_DIR}/customize_opts.sh"
210 cat <<EOF > $CUST_OPTS 210 cat <<EOF > $CUST_OPTS
211 SETUP_DIR="$ROOTFS_SETUP_DIR" 211 SETUP_DIR="$ROOTFS_SETUP_DIR"
212 KERNEL_VERSION="$KERNEL_VERSION" 212 KERNEL_VERSION="$KERNEL_VERSION"
213 SERVER="$MIRROR_INSIDE" 213 SERVER="$MIRROR_INSIDE"
214 SUITE="$FLAGS_suite" 214 SUITE="$FLAGS_suite"
215 SERVER2="$MIRROR2_INSIDE" 215 SERVER2="$MIRROR2_INSIDE"
216 SUITE2="$FLAGS_suite2" 216 SUITE2="$FLAGS_suite2"
217 EOF 217 EOF
218 # ...and all CHROMEOS_ vars 218 # ...and all CHROMEOS_ vars
219 set | grep "^CHROMEOS_" >> $CUST_OPTS 219 set | egrep "^CHROMEOS_|^BUILDBOT_" >> $CUST_OPTS
220 220
221 # Run the package install script 221 # Run the package install script
222 sudo chroot "$ROOT_FS_DIR" \ 222 sudo chroot "$ROOT_FS_DIR" \
223 "${ROOTFS_SETUP_DIR}/${ROOTFS_PACKAGE_INSTALL_SCRIPT}" 223 "${ROOTFS_SETUP_DIR}/${ROOTFS_PACKAGE_INSTALL_SCRIPT}"
224 224
225 # Run the script to customize the resulting root file system. 225 # Run the script to customize the resulting root file system.
226 sudo chroot "$ROOT_FS_DIR" "${ROOTFS_SETUP_DIR}/${ROOTFS_CUSTOMIZE_SCRIPT}" 226 sudo chroot "$ROOT_FS_DIR" "${ROOTFS_SETUP_DIR}/${ROOTFS_CUSTOMIZE_SCRIPT}"
227 227
228 # No longer need the setup directory in the rootfs. 228 # No longer need the setup directory in the rootfs.
229 rm -rf "$SETUP_DIR" 229 rm -rf "$SETUP_DIR"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 EOF 275 EOF
276 276
277 OUTSIDE_OUTPUT_DIR="${EXTERNAL_TRUNK_PATH}/src/build/images/${IMAGE_SUBDIR}" 277 OUTSIDE_OUTPUT_DIR="${EXTERNAL_TRUNK_PATH}/src/build/images/${IMAGE_SUBDIR}"
278 echo "Done. Image created in ${OUTPUT_DIR}" 278 echo "Done. Image created in ${OUTPUT_DIR}"
279 echo "To copy to USB keyfob, outside the chroot, do something like:" 279 echo "To copy to USB keyfob, outside the chroot, do something like:"
280 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdb" 280 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdb"
281 echo "To convert to VMWare image, outside the chroot, do something like:" 281 echo "To convert to VMWare image, outside the chroot, do something like:"
282 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}" 282 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}"
283 283
284 trap - EXIT 284 trap - EXIT
OLDNEW
« no previous file with comments | « src/scripts/archive_build.sh ('k') | src/scripts/chromeos_version.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698