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

Side by Side Diff: build_image

Issue 6904093: Cleanup set_shared_user_password related transitional code. (Closed) Base URL: ssh://gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 9 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | set_shared_user_password.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) 2011 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.
11 11
12 # Load common CrOS utilities. Inside the chroot this file is installed in 12 # Load common CrOS utilities. Inside the chroot this file is installed in
13 # /usr/lib/crosutils. Outside the chroot we find it relative to the script's 13 # /usr/lib/crosutils. Outside the chroot we find it relative to the script's
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 --board="${FLAGS_board}" chromeos-base/chromeos \ 129 --board="${FLAGS_board}" chromeos-base/chromeos \
130 | grep -x -f "${package_blacklist_file}") 130 | grep -x -f "${package_blacklist_file}")
131 if [ -n "${blacklisted_packages}" ]; then 131 if [ -n "${blacklisted_packages}" ]; then
132 die "Blacklisted packages found: ${blacklisted_packages}." 132 die "Blacklisted packages found: ${blacklisted_packages}."
133 fi 133 fi
134 info "No blacklisted packages found." 134 info "No blacklisted packages found."
135 } 135 }
136 136
137 check_blacklist 137 check_blacklist
138 138
139 # TODO(petkov): Remove along with the --move_to_etc flag support once the
140 # transition dust settles.
141 "${SCRIPTS_DIR}"/set_shared_user_password.sh --move_to_etc
142
143 # TODO(vlaviano): Validate command line flags. Check for conflicting flags and 139 # TODO(vlaviano): Validate command line flags. Check for conflicting flags and
144 # reconcile them if possible. Exit with an error message otherwise. 140 # reconcile them if possible. Exit with an error message otherwise.
145 141
146 export INSTALL_MASK="" 142 export INSTALL_MASK=""
147 if [ ${FLAGS_installmask} -eq ${FLAGS_TRUE} ] ; then 143 if [ ${FLAGS_installmask} -eq ${FLAGS_TRUE} ] ; then
148 INSTALL_MASK="${DEFAULT_INSTALL_MASK}" 144 INSTALL_MASK="${DEFAULT_INSTALL_MASK}"
149 fi 145 fi
150 146
151 # Reduce the size of factory install shim. 147 # Reduce the size of factory install shim.
152 if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ]; then 148 if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ]; then
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" 804 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}"
809 fi 805 fi
810 806
811 print_time_elapsed 807 print_time_elapsed
812 808
813 echo "To copy to USB keyfob, do something like:" 809 echo "To copy to USB keyfob, do something like:"
814 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" 810 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX"
815 echo "To convert to VMWare image, INSIDE the chroot, do something like:" 811 echo "To convert to VMWare image, INSIDE the chroot, do something like:"
816 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" 812 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}"
817 echo "from the scripts directory where you entered the chroot." 813 echo "from the scripts directory where you entered the chroot."
OLDNEW
« no previous file with comments | « no previous file | set_shared_user_password.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698