[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: woody image sizes



[Philip Charles]
> If MULTIBOOT="yes" is present in Conf.sh, then the first CD is too large.
> If it is absent, the the size is OK.  MULTIBOOT adds another ~8 MB to the
> image size.  Caviat, assumes four multiboot options.
> 
> A fix could be incorporated into build.sh and build_all.sh.

Something like this?

Index: build.sh
===================================================================
RCS file: /var/lib/cvs/skolelinux/src/debian-cd/build.sh,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -p -u -r1.9 -r1.10
--- build.sh    13 Jan 2002 15:06:52 -0000      1.9
+++ build.sh    15 Feb 2002 14:38:41 -0000      1.10
@@ -21,6 +21,10 @@ if [ -e ${MIRROR}/dists/${CODENAME}/main
 else
        disks=0
 fi
+if [ yes = "$MULTIBOOT" ]; then
+    # Should calculate the size, don't know how...
+    multibootsize=8
+fi
 if [ -f $BASEDIR/tools/boot/$CODENAME/boot-$ARCH.calc ]; then
     . $BASEDIR/tools/boot/$CODENAME/boot-$ARCH.calc
 fi
@@ -28,7 +32,7 @@ SIZE_ARGS=''
 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))
+       [ $CD = "1" ] && size=$(($size + $disks + $multibootsize))
        SIZE_ARGS="$SIZE_ARGS SIZELIMIT${CD}=$(((630 - $size) * 1024 *1024))"
 done
 make list COMPLETE=1 $SIZE_ARGS SRCSIZELIMIT=$((635 * 1024 * 1024))



Reply to: