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

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

Issue 548092: Fix when referencing --with_dev_pkgs flag. Doh! (Closed)
Patch Set: 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 | no next file » | 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 UUID=`uuidgen` 113 UUID=`uuidgen`
114 DISK_LABEL=C-ROOT 114 DISK_LABEL=C-ROOT
115 LOOP_DEV=`sudo losetup -f` 115 LOOP_DEV=`sudo losetup -f`
116 sudo losetup "$LOOP_DEV" "$ROOT_FS_IMG" 116 sudo losetup "$LOOP_DEV" "$ROOT_FS_IMG"
117 sudo mkfs.ext3 "$LOOP_DEV" 117 sudo mkfs.ext3 "$LOOP_DEV"
118 sudo tune2fs -L "$DISK_LABEL" -U "$UUID" -c 0 -i 0 "$LOOP_DEV" 118 sudo tune2fs -L "$DISK_LABEL" -U "$UUID" -c 0 -i 0 "$LOOP_DEV"
119 sudo mount "$LOOP_DEV" "$ROOT_FS_DIR" 119 sudo mount "$LOOP_DEV" "$ROOT_FS_DIR"
120 120
121 # -- Install packages and customize root file system. -- 121 # -- Install packages and customize root file system. --
122 PKGLIST="$FLAGS_pkglist" 122 PKGLIST="$FLAGS_pkglist"
123 if [ $FLAGS_with_dev_pkglist -eq $FLAGS_TRUE ]; then 123 if [ $FLAGS_with_dev_pkgs -eq $FLAGS_TRUE ]; then
124 PKGLIST="$PKGLIST,${SRC_ROOT}/package_repo/package-list-debug.txt" 124 PKGLIST="$PKGLIST,${SRC_ROOT}/package_repo/package-list-debug.txt"
125 fi 125 fi
126 "${SCRIPTS_DIR}/install_packages.sh" \ 126 "${SCRIPTS_DIR}/install_packages.sh" \
127 --build_root="${FLAGS_build_root}" \ 127 --build_root="${FLAGS_build_root}" \
128 --root="$ROOT_FS_DIR" \ 128 --root="$ROOT_FS_DIR" \
129 --output_dir="${OUTPUT_DIR}" \ 129 --output_dir="${OUTPUT_DIR}" \
130 --package_list="$PKGLIST" \ 130 --package_list="$PKGLIST" \
131 --server="$FLAGS_mirror" \ 131 --server="$FLAGS_mirror" \
132 --suite="$FLAGS_suite" 132 --suite="$FLAGS_suite"
133 133
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 EOF 174 EOF
175 175
176 OUTSIDE_OUTPUT_DIR="${EXTERNAL_TRUNK_PATH}/src/build/images/${IMAGE_SUBDIR}" 176 OUTSIDE_OUTPUT_DIR="${EXTERNAL_TRUNK_PATH}/src/build/images/${IMAGE_SUBDIR}"
177 echo "Done. Image created in ${OUTPUT_DIR}" 177 echo "Done. Image created in ${OUTPUT_DIR}"
178 echo "To copy to USB keyfob, outside the chroot, do something like:" 178 echo "To copy to USB keyfob, outside the chroot, do something like:"
179 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdb" 179 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdb"
180 echo "To convert to VMWare image, outside the chroot, do something like:" 180 echo "To convert to VMWare image, outside the chroot, do something like:"
181 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}" 181 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}"
182 182
183 trap - EXIT 183 trap - EXIT
OLDNEW
« 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