OLD | NEW |
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 from within | 7 # Script to build a bootable keyfob-based chromeos system image from within |
8 # a chromiumos setup. This assumes that all needed packages have been built into | 8 # a chromiumos setup. This assumes that all needed packages have been built into |
9 # the given target's root with binary packages turned on. This script will | 9 # the given target's root with binary packages turned on. This script will |
10 # build the Chrome OS image using only pre-built binary packages. | 10 # build the Chrome OS image using only pre-built binary packages. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 "Install development packages on stateful partition rather than the rootfs" | 44 "Install development packages on stateful partition rather than the rootfs" |
45 DEFINE_string to "" \ | 45 DEFINE_string to "" \ |
46 "The target image file or device" | 46 "The target image file or device" |
47 DEFINE_boolean factory_install ${FLAGS_FALSE} \ | 47 DEFINE_boolean factory_install ${FLAGS_FALSE} \ |
48 "Build a smaller image to overlay the factory install shim on; this argument \ | 48 "Build a smaller image to overlay the factory install shim on; this argument \ |
49 is also required in image_to_usb." | 49 is also required in image_to_usb." |
50 DEFINE_boolean dev_install ${FLAGS_FALSE} \ | 50 DEFINE_boolean dev_install ${FLAGS_FALSE} \ |
51 "Build a smaller image to overlay the dev recovery install shim on" | 51 "Build a smaller image to overlay the dev recovery install shim on" |
52 DEFINE_integer rootfs_partition_size 1024 \ | 52 DEFINE_integer rootfs_partition_size 1024 \ |
53 "rootfs partition size in MiBs." | 53 "rootfs partition size in MiBs." |
54 DEFINE_integer rootfs_size 720 \ | 54 DEFINE_integer rootfs_size 850 \ |
55 "rootfs filesystem size in MiBs." | 55 "rootfs filesystem size in MiBs." |
56 # ceil(0.1 * rootfs_size) is a good minimum. | 56 # ceil(0.1 * rootfs_size) is a good minimum. |
57 DEFINE_integer rootfs_hash_pad 8 \ | 57 DEFINE_integer rootfs_hash_pad 8 \ |
58 "MiBs reserved at the end of the rootfs image." | 58 "MiBs reserved at the end of the rootfs image." |
59 DEFINE_integer statefulfs_size 1024 \ | 59 DEFINE_integer statefulfs_size 1024 \ |
60 "stateful filesystem size in MiBs." | 60 "stateful filesystem size in MiBs." |
61 DEFINE_boolean preserve ${FLAGS_FALSE} \ | 61 DEFINE_boolean preserve ${FLAGS_FALSE} \ |
62 "Attempt to preserve the previous build image if one can be found (unstable, \ | 62 "Attempt to preserve the previous build image if one can be found (unstable, \ |
63 kernel/firmware not updated)" | 63 kernel/firmware not updated)" |
64 DEFINE_boolean fast ${DEFAULT_FAST} \ | 64 DEFINE_boolean fast ${DEFAULT_FAST} \ |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" | 792 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" |
793 fi | 793 fi |
794 | 794 |
795 print_time_elapsed | 795 print_time_elapsed |
796 | 796 |
797 echo "To copy to USB keyfob, do something like:" | 797 echo "To copy to USB keyfob, do something like:" |
798 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" | 798 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" |
799 echo "To convert to VMWare image, INSIDE the chroot, do something like:" | 799 echo "To convert to VMWare image, INSIDE the chroot, do something like:" |
800 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" | 800 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" |
801 echo "from the scripts directory where you entered the chroot." | 801 echo "from the scripts directory where you entered the chroot." |
OLD | NEW |