#!/bin/sh
#
# Make sure the target disk is big enough to install on.
#
# Garrett Cooper, March 2012
. /etc/avatar_img_size.conf
media_size=$(diskinfo $INSTALL_MEDIA | awk '{ print $3 }')
# NOTE: automatically generated by ${0##*/}
if [ ${media_size:-0} -lt $IMG_SIZE ]
then
error "install target media ($INSTALL_MEDIA) is too small ($media_size < $IMG_SIZE)"
fi
-
Alfred Perlstein authored
create_iso.sh generated the 0005.verify_media_size.sh script and in the process would write the current value (during build) of IMG_SIZE hardwired into the script. In addition most of the other variables were escaped with \$, however now that the file is being copied the variables no longer need to be escaped.
59bf893f