| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 DEFINE_boolean fast ${DEFAULT_FAST} \ | 64 DEFINE_boolean fast ${DEFAULT_FAST} \ |
| 65 "Call many emerges in parallel" | 65 "Call many emerges in parallel" |
| 66 DEFINE_string boot_args "noinitrd" \ | 66 DEFINE_string boot_args "noinitrd" \ |
| 67 "Additional boot arguments to pass to the commandline" | 67 "Additional boot arguments to pass to the commandline" |
| 68 | 68 |
| 69 DEFINE_string usb_disk /dev/sdb3 \ | 69 DEFINE_string usb_disk /dev/sdb3 \ |
| 70 "Path syslinux should use to do a usb boot. Default: /dev/sdb3" | 70 "Path syslinux should use to do a usb boot. Default: /dev/sdb3" |
| 71 | 71 |
| 72 DEFINE_boolean enable_rootfs_verification ${FLAGS_TRUE} \ | 72 DEFINE_boolean enable_rootfs_verification ${FLAGS_TRUE} \ |
| 73 "Default all bootloaders to use kernel-based root fs integrity checking." | 73 "Default all bootloaders to use kernel-based root fs integrity checking." |
| 74 DEFINE_integer verity_error_behavior 1 \ | 74 DEFINE_integer verity_error_behavior 3 \ |
| 75 "Kernel verified boot error behavior (0: I/O errors, 1: panic, 2: nothing, \ | 75 "Kernel verified boot error behavior (0: I/O errors, 1: panic, 2: nothing, \ |
| 76 3: cros) Default: 1" | 76 3: cros) Default: 3" |
| 77 DEFINE_integer verity_depth 1 \ | 77 DEFINE_integer verity_depth 1 \ |
| 78 "Kernel verified boot hash tree depth. Default: 1" | 78 "Kernel verified boot hash tree depth. Default: 1" |
| 79 DEFINE_integer verity_max_ios -1 \ | 79 DEFINE_integer verity_max_ios -1 \ |
| 80 "Number of outstanding I/O operations dm-verity caps at. Default: -1" | 80 "Number of outstanding I/O operations dm-verity caps at. Default: -1" |
| 81 DEFINE_string verity_algorithm "sha1" \ | 81 DEFINE_string verity_algorithm "sha1" \ |
| 82 "Cryptographic hash algorithm used for kernel vboot. Default : sha1" | 82 "Cryptographic hash algorithm used for kernel vboot. Default : sha1" |
| 83 | 83 |
| 84 DEFINE_string oem_customization "" \ | 84 DEFINE_string oem_customization "" \ |
| 85 "Path to directory containing OEM partner partition contents" | 85 "Path to directory containing OEM partner partition contents" |
| 86 | 86 |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" | 815 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" |
| 816 fi | 816 fi |
| 817 | 817 |
| 818 print_time_elapsed | 818 print_time_elapsed |
| 819 | 819 |
| 820 echo "To copy to USB keyfob, do something like:" | 820 echo "To copy to USB keyfob, do something like:" |
| 821 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" | 821 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" |
| 822 echo "To convert to VMWare image, INSIDE the chroot, do something like:" | 822 echo "To convert to VMWare image, INSIDE the chroot, do something like:" |
| 823 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" | 823 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" |
| 824 echo "from the scripts directory where you entered the chroot." | 824 echo "from the scripts directory where you entered the chroot." |
| OLD | NEW |