| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 --board="${FLAGS_board}" chromeos-base/chromeos \ | 132 --board="${FLAGS_board}" chromeos-base/chromeos \ |
| 133 | grep -x -f "${package_blacklist_file}") | 133 | grep -x -f "${package_blacklist_file}") |
| 134 if [ -n "${blacklisted_packages}" ]; then | 134 if [ -n "${blacklisted_packages}" ]; then |
| 135 die "Blacklisted packages found: ${blacklisted_packages}." | 135 die "Blacklisted packages found: ${blacklisted_packages}." |
| 136 fi | 136 fi |
| 137 info "No blacklisted packages found." | 137 info "No blacklisted packages found." |
| 138 } | 138 } |
| 139 | 139 |
| 140 check_blacklist | 140 check_blacklist |
| 141 | 141 |
| 142 # TODO(petkov): Remove along with the --move_to_etc flag support once the |
| 143 # transition dust settles. |
| 144 "${SCRIPTS_DIR}"/set_shared_user_password.sh --move_to_etc |
| 145 |
| 142 # Verify user didn't specify incompatible flags for dev install shim | 146 # Verify user didn't specify incompatible flags for dev install shim |
| 143 if [ "${FLAGS_factory_install}" -eq "${FLAGS_TRUE}" ] && | 147 if [ "${FLAGS_factory_install}" -eq "${FLAGS_TRUE}" ] && |
| 144 [ "${FLAGS_dev_install}" -eq "${FLAGS_TRUE}" ] ; then | 148 [ "${FLAGS_dev_install}" -eq "${FLAGS_TRUE}" ] ; then |
| 145 die "Incompatible flags: --factory_install and --dev_install cannot be \ | 149 die "Incompatible flags: --factory_install and --dev_install cannot be \ |
| 146 both set to True. Please specify one or none." | 150 both set to True. Please specify one or none." |
| 147 fi | 151 fi |
| 148 | 152 |
| 149 INSTALL_MASK="" | 153 INSTALL_MASK="" |
| 150 if [ "${FLAGS_installmask}" -eq "${FLAGS_TRUE}" ] ; then | 154 if [ "${FLAGS_installmask}" -eq "${FLAGS_TRUE}" ] ; then |
| 151 INSTALL_MASK="${DEFAULT_INSTALL_MASK}" | 155 INSTALL_MASK="${DEFAULT_INSTALL_MASK}" |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" | 843 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" |
| 840 fi | 844 fi |
| 841 | 845 |
| 842 print_time_elapsed | 846 print_time_elapsed |
| 843 | 847 |
| 844 echo "To copy to USB keyfob, do something like:" | 848 echo "To copy to USB keyfob, do something like:" |
| 845 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" | 849 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" |
| 846 echo "To convert to VMWare image, INSIDE the chroot, do something like:" | 850 echo "To convert to VMWare image, INSIDE the chroot, do something like:" |
| 847 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" | 851 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" |
| 848 echo "from the scripts directory where you entered the chroot." | 852 echo "from the scripts directory where you entered the chroot." |
| OLD | NEW |