Cope with missing boot images

Look for boot sizes on more than just the first 4 CDs
This commit is contained in:
Steve McIntyre 2001-12-16 23:15:07 +00:00
parent bc759d08c2
commit 07417d6ed1
1 changed files with 7 additions and 3 deletions

View File

@ -15,13 +15,17 @@ if [ $? -gt 0 ]; then
exit 1
fi
echo " ... selecting packages to include"
disks=`du -sm ${MIRROR}/dists/${CODENAME}/main/disks-${ARCH}/current/. | \
awk '{print $1}'`
if [ -e ${MIRROR}/dists/${CODENAME}/main/disks-${ARCH}/current/. ] ; then
disks=`du -sm ${MIRROR}/dists/${CODENAME}/main/disks-${ARCH}/current/. | \
awk '{print $1}'`
else
disks=0
fi
if [ -f $BASEDIR/tools/boot/$CODENAME/boot-$ARCH.calc ]; then
. $BASEDIR/tools/boot/$CODENAME/boot-$ARCH.calc
fi
SIZE_ARGS=''
for CD in 1 2 3 4; do
for CD in 1 2 3 4 5 6 7 8; do
size=`eval echo '$'"BOOT_SIZE_${CD}"`
[ "$size" = "" ] && size=0
[ $CD = "1" ] && size=$(($size + $disks))