| Index: build_image
|
| diff --git a/build_image b/build_image
|
| index 0865243b0a8cb8e668f0d1082afcccc7d8fd9f3c..d61b98e7fbb88e804dcc58c1bb2a0c6360afa778 100755
|
| --- a/build_image
|
| +++ b/build_image
|
| @@ -97,6 +97,25 @@ if [ -z "${FLAGS_board}" ] ; then
|
| exit 1
|
| fi
|
|
|
| +check_blacklist() {
|
| + info "Verifying that the base image does not contain a blacklisted package."
|
| + info "Generating list of packages for chromeos-base/chromeos."
|
| + local package_blacklist_file="${SCRIPTS_DIR}/chromeos_blacklist"
|
| + if [ ! -e "${package_blacklist_file}" ]; then
|
| + warn "Missing blacklist file."
|
| + return
|
| + fi
|
| + local blacklisted_packages=$(${SCRIPTS_DIR}/get_package_list \
|
| + --board="${FLAGS_board}" chromeos-base/chromeos \
|
| + | grep -x -f "${package_blacklist_file}")
|
| + if [ -n "${blacklisted_packages}" ]; then
|
| + die "Blacklisted packages found: ${blacklisted_packages}."
|
| + fi
|
| + info "No blacklisted packages found."
|
| +}
|
| +
|
| +check_blacklist
|
| +
|
| # Verify user didn't specify incompatible flags for dev install shim
|
| if [ "${FLAGS_factory_install}" -eq "${FLAGS_TRUE}" ] &&
|
| [ "${FLAGS_dev_install}" -eq "${FLAGS_TRUE}" ] ; then
|
|
|