Skip to content

Commit

Permalink
chore: remove BUILD_TAR_ONLY conditional (#2029)
Browse files Browse the repository at this point in the history
This BUILD_TAR_ONLY conditional is never used, and I don't suspect it
will be used.
  • Loading branch information
andrewbattat authored Oct 15, 2024
1 parent 2109b3f commit 0501f7b
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions ic-os/components/hostos-scripts/build-bootstrap-config-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ set -e

function usage() {
cat >&2 <<EOF
build-bootstrap-config-image.sh [-t] out_file [parameters]
build-bootstrap-config-image.sh out_file [parameters]
Build the configuration image injected into the guest OS
Build the configuration image injected into the guestOS
during bootstrap.
The first argument may optionally be "-t" to instruct the script to just build
the tar file that contains the config information. Otherwise, it will build the
disk image that will be injected as removable media into the bootstrap process.
The output file needs to be given next. The script will either write a
disk image or tar file as output file (see above).
Expand Down Expand Up @@ -307,19 +303,9 @@ function build_ic_bootstrap_diskimage() {
rm -rf "${TMPDIR}"
}

BUILD_TAR_ONLY=0
if [ "$1" == "-t" -o "$1" == "--tar" ]; then
BUILD_TAR_ONLY=1
shift
fi

if [ "$#" -lt 2 ]; then
usage
exit 1
fi

if [ "${BUILD_TAR_ONLY}" == 0 ]; then
build_ic_bootstrap_diskimage "$@"
else
build_ic_bootstrap_tar "$@"
fi
build_ic_bootstrap_diskimage "$@"

0 comments on commit 0501f7b

Please sign in to comment.