Since curl is needed to find remote file sizes, lets do the whole
downloading with curl.
INSTALL_MBR="install-mbr"
TIMELIMIT="timelimit"
CURL="curl"
-WGET="wget"
PROGRESS_MONITOR="snf-progress-monitor"
progress_monitor_support="@progress_monitor_support@"
AC_MSG_ERROR([timelimit not found in $PATH:/usr/sbin:/sbin])
fi
-AC_PATH_PROG(WGET, [wget], [], [$PATH:/usr/sbin:/sbin])
-if test -z "$WGET" ; then
- AC_MSG_ERROR([wget not found in $PATH:/usr/sbin:/sbin])
-fi
-
AC_PATH_PROG(CURL, [curl], [], [$PATH:/usr/sbin:/sbin])
if test -z "$CURL" ; then
AC_MSG_ERROR([curl not found in $PATH:/usr/sbin:/sbin])
esac
if [ "$IMAGE_TYPE" = "custom" ]; then
- "$WGET" -O - $IMAGE_NAME | $monitor dd bs=4M of="$target" oflag=direct
+ "$CURL" "$IMAGE_NAME" 2>/dev/null |\
+ $monitor dd bs=4M of="$target" oflag=direct
else
# dd the dump to its new home :-)
# Deploying an image file on a target block device is a streaming copy
# INSTALL_MBR="install-mbr"
# TIMELIMIT="timelimit"
# CURL="curl"
-# WGET="wget"
# PROGRESS_MONITOR="snf-progress-monitor"