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

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

Issue 431001: build: Update build_image.sh for non-~/chromeos setups. (Closed)
Patch Set: Created 11 years, 1 month 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/enter_chroot.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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 dd if="$SYSLINUX_MBR" of="$MBR_IMG" bs=512 count=1 conv=sync 267 dd if="$SYSLINUX_MBR" of="$MBR_IMG" bs=512 count=1 conv=sync
268 # Create a partition table in the MBR. 268 # Create a partition table in the MBR.
269 NUM_SECTORS=$((`stat --format="%s" "$ROOT_FS_IMG"` / 512)) 269 NUM_SECTORS=$((`stat --format="%s" "$ROOT_FS_IMG"` / 512))
270 sudo sfdisk -H64 -S32 -uS -f "$MBR_IMG" <<EOF 270 sudo sfdisk -H64 -S32 -uS -f "$MBR_IMG" <<EOF
271 ,$NUM_SECTORS,L,-, 271 ,$NUM_SECTORS,L,-,
272 ,$NUM_SECTORS,S,-, 272 ,$NUM_SECTORS,S,-,
273 ,$NUM_SECTORS,L,*, 273 ,$NUM_SECTORS,L,*,
274 ; 274 ;
275 EOF 275 EOF
276 276
277 OUTSIDE_OUTPUT_DIR="~/chromeos/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 | « no previous file | src/scripts/enter_chroot.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698