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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 DEFINE_integer rootfs_size 720 \ | 52 DEFINE_integer rootfs_size 720 \ |
53 "rootfs filesystem size in MBs." | 53 "rootfs filesystem size in MBs." |
54 # ceil(0.1 * rootfs_size) is a good minimum. | 54 # ceil(0.1 * rootfs_size) is a good minimum. |
55 DEFINE_integer rootfs_hash_pad 8 \ | 55 DEFINE_integer rootfs_hash_pad 8 \ |
56 "MBs reserved at the end of the rootfs image." | 56 "MBs reserved at the end of the rootfs image." |
57 DEFINE_integer statefulfs_size 1024 \ | 57 DEFINE_integer statefulfs_size 1024 \ |
58 "stateful filesystem size in MBs." | 58 "stateful filesystem size in MBs." |
59 DEFINE_boolean preserve ${FLAGS_FALSE} \ | 59 DEFINE_boolean preserve ${FLAGS_FALSE} \ |
60 "Attempt to preserve the previous build image if one can be found (unstable, \ | 60 "Attempt to preserve the previous build image if one can be found (unstable, \ |
61 kernel/firmware not updated)" | 61 kernel/firmware not updated)" |
62 DEFINE_boolean fast ${FLAGS_FALSE} \ | 62 DEFINE_boolean fast ${DEFAULT_FAST} \ |
63 "Call many emerges in parallel (unstable)" | 63 "Call many emerges in parallel" |
64 | 64 |
65 DEFINE_string usb_disk /dev/sdb3 \ | 65 DEFINE_string usb_disk /dev/sdb3 \ |
66 "Path syslinux should use to do a usb boot. Default: /dev/sdb3" | 66 "Path syslinux should use to do a usb boot. Default: /dev/sdb3" |
67 | 67 |
68 DEFINE_boolean enable_rootfs_verification ${FLAGS_FALSE} \ | 68 DEFINE_boolean enable_rootfs_verification ${FLAGS_FALSE} \ |
69 "Default all bootloaders to use kernel-based root fs integrity checking." | 69 "Default all bootloaders to use kernel-based root fs integrity checking." |
70 DEFINE_integer verity_error_behavior 2 \ | 70 DEFINE_integer verity_error_behavior 2 \ |
71 "Kernel verified boot error behavior (0: I/O errors, 1: reboot, 2: nothing) \ | 71 "Kernel verified boot error behavior (0: I/O errors, 1: reboot, 2: nothing) \ |
72 Default: 2" | 72 Default: 2" |
73 DEFINE_integer verity_depth 1 \ | 73 DEFINE_integer verity_depth 1 \ |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" | 765 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" |
766 fi | 766 fi |
767 | 767 |
768 print_time_elapsed | 768 print_time_elapsed |
769 | 769 |
770 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" | 770 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" |
771 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" | 771 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" |
772 echo "To convert to VMWare image, INSIDE the chroot, do something like:" | 772 echo "To convert to VMWare image, INSIDE the chroot, do something like:" |
773 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR}" | 773 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR}" |
774 echo "from the scripts directory where you entered the chroot." | 774 echo "from the scripts directory where you entered the chroot." |
OLD | NEW |