diff --git a/build_image b/build_image index 640a92f2b5..0ee30b30fa 100755 --- a/build_image +++ b/build_image @@ -31,7 +31,7 @@ DEFINE_boolean enable_rootfs_verification ${FLAGS_TRUE} \ DEFINE_string base_pkg "coreos-base/coreos" \ "The base portage package to base the build off of (only applies to prod images)" DEFINE_string base_dev_pkg "coreos-base/coreos-dev" \ - "The base portage package to base the build off of (only applies to dev images)" + "The base portage package to base the build off of (only applies to dev containers)" DEFINE_string torcx_manifest "${DEFAULT_BUILD_ROOT}/torcx/${DEFAULT_BOARD}/latest/torcx_manifest.json" \ "The torcx manifest describing torcx packages for this image (or blank for none)" DEFINE_string torcx_root "${DEFAULT_BUILD_ROOT}/torcx" \ @@ -57,12 +57,11 @@ This script is used to build a CoreOS image. CoreOS comes in many different forms. This scripts can be used to build the following: prod - Production image for CoreOS. This image is for booting. -dev - Developer image. Like base but with additional developer packages. container - Developer image with single filesystem, bootable by nspawn. Examples: -build_image --board= [dev] [prod] [container] - builds developer and production images. +build_image --board= [prod] [container] - builds developer and production images. ... " show_help_if_requested "$@" @@ -113,12 +112,10 @@ fi . "${BUILD_LIBRARY_DIR}/vm_image_util.sh" || exit 1 PROD_IMAGE=0 -DEV_IMAGE=0 CONTAINER=0 for arg in "$@"; do case "${arg}" in prod) PROD_IMAGE=1 ;; - dev) DEV_IMAGE=1 ;; container) CONTAINER=1 ;; *) die_notrace "Unknown image type ${arg}" ;; esac @@ -146,8 +143,6 @@ fi mkdir -p "${BUILD_DIR}" DISK_LAYOUT="${FLAGS_disk_layout:-base}" -DEV_DISK_LAYOUT="${FLAGS_disk_layout:-devel}" - CONTAINER_LAYOUT="${FLAGS_disk_layout:-container}" if [[ -n "${FLAGS_developer_data}" ]]; then @@ -169,14 +164,6 @@ fi fix_mtab -if [[ "${DEV_IMAGE}" -eq 1 ]]; then - IMAGE_BUILD_TYPE="dev" - create_dev_image ${COREOS_DEVELOPER_IMAGE_NAME} ${DEV_DISK_LAYOUT} ${FLAGS_group} ${FLAGS_base_dev_pkg} - if [[ ${FLAGS_extract_update} -eq ${FLAGS_TRUE} ]]; then - extract_update "${COREOS_DEVELOPER_IMAGE_NAME}" "${DEV_DISK_LAYOUT}" - fi -fi - if [[ "${CONTAINER}" -eq 1 ]]; then IMAGE_BUILD_TYPE="container" create_dev_image "${COREOS_DEVELOPER_CONTAINER_NAME}" "${CONTAINER_LAYOUT}" "${FLAGS_group}" ${FLAGS_base_dev_pkg} @@ -236,10 +223,6 @@ if [[ "${PROD_IMAGE}" -eq 1 ]]; then echo "CoreOS Production image created as ${COREOS_PRODUCTION_IMAGE_NAME}" print_image_to_vm fi -if [[ "${DEV_IMAGE}" -eq 1 ]]; then - echo "Developer image created as ${COREOS_DEVELOPER_IMAGE_NAME}" - print_image_to_vm dev -fi command_completed diff --git a/build_library/dev_image_util.sh b/build_library/dev_image_util.sh index ccc20d2b1a..536bd1ec27 100755 --- a/build_library/dev_image_util.sh +++ b/build_library/dev_image_util.sh @@ -54,38 +54,17 @@ EOF eselect profile set --force $(get_board_profile $BOARD)/dev } -detect_dev_url() { - local port=":8080" - local host=$(hostname --fqdn 2>/dev/null) - if [[ -z "${host}" ]]; then - host=$(ip addr show scope global | \ - awk '$1 == "inet" { sub(/[/].*/, "", $2); print $2; exit }') - fi - if [[ -n "${host}" ]]; then - echo "http://${host}${port}" - fi -} - create_dev_image() { local image_name=$1 local disk_layout=$2 local update_group=$3 local base_pkg="$4" - local devserver=$(detect_dev_url) - local auserver="" if [ -z "${base_pkg}" ]; then echo "did not get base package!" exit 1 fi - if [[ -n "${devserver}" ]]; then - info "Using ${devserver} for local dev server URL." - auserver="${devserver}/update" - else - info "Unable do detect local dev server address." - fi - info "Building developer image ${image_name}" local root_fs_dir="${BUILD_DIR}/rootfs" local image_contents="${image_name%.bin}_contents.txt" @@ -102,14 +81,7 @@ create_dev_image() { write_licenses "${root_fs_dir}" "${BUILD_DIR}/${image_licenses}" # Setup portage for emerge and gmerge - configure_dev_portage "${root_fs_dir}" "${devserver}" - - sudo_append "${root_fs_dir}/etc/coreos/update.conf" <