Problems controlling the content on CD one
I'm building a custum debian CD for the norwegian linux for schools
project, and am using debian-cd to do this. I've had some problems
getting the build system to do what I want, but hoped I had this under
control, Alas, something went wrong a few days ago. The CD I made
yesterday do not boot (this could be a problem with the burning, so
I'll investigate more), but a more serious problem is the fact that
the CDs no longer contain all the packages I list in my task file.
I've modified debian-cd like this:
- reduce the CD size to make sure the image is below 650 MB (or
actually 650 000 000 bytes)
- add reference to our task file
- avoid building source CDs (not enough space on the HD)
- Adapt paths to match our HD layout
- use mkhybrid as mkisofs was missing from woody when I started
using these scripts.
Is there any reason why the packages listed in tasks/skolelinux would
be missing on the first CD? Is there something I do wrong?
Notice, the directories in our local APT source had to be named
dists/woody/local/binary-i386/non-official/. Is the non-official/
name really nesessary? I was unable to get it to work if I placed the
packages in directories with other names.
Index: build.sh
===================================================================
RCS file: /var/lib/cvs/skolelinux/src/debian-cd/build.sh,v
retrieving revision 1.1.1.1
retrieving revision 1.4
diff -u -3 -p -u -r1.1.1.1 -r1.4
--- build.sh 26 Aug 2001 11:45:50 -0000 1.1.1.1
+++ build.sh 11 Nov 2001 11:27:30 -0000 1.4
@@ -25,10 +25,10 @@ for CD in 1 2 3 4; do
size=`eval echo '$'"BOOT_SIZE_${CD}"`
[ "$size" = "" ] && size=0
[ $CD = "1" ] && size=$(($size + $disks))
- SIZE_ARGS="$SIZE_ARGS SIZELIMIT${CD}=$(((630 - $size) * 1024 *1024))"
+ SIZE_ARGS="$SIZE_ARGS SIZELIMIT${CD}=$(((593 - $size) * 1024 *1024))"
done
-make list COMPLETE=1 $SIZE_ARGS SRCSIZELIMIT=$((635 * 1024 * 1024))
+make list COMPLETE=1 $SIZE_ARGS SRCSIZELIMIT=$((635 * 1024 * 1024)) TASK=tasks/skolelinux
echo " ... building the images"
-make official_images
+make bin-official_images
make imagesums
Index: CONF.sh
===================================================================
RCS file: /var/lib/cvs/skolelinux/src/debian-cd/CONF.sh,v
retrieving revision 1.1.1.2
retrieving revision 1.12
diff -u -3 -p -u -r1.1.1.2 -r1.12
--- CONF.sh 21 Oct 2001 21:08:08 -0000 1.1.1.2
+++ CONF.sh 16 Nov 2001 17:44:15 -0000 1.12
@@ -27,7 +27,7 @@ export BASEDIR=`pwd`
export CODENAME=woody
# Version number, "2.2 r0", "2.2 r1" etc.
-export DEBVERSION="3.0 beta"
+export DEBVERSION="3.0 skole pr8"
# Official or non-official set.
# NOTE: THE "OFFICIAL" DESIGNATION IS ONLY ALLOWED FOR IMAGES AVAILABLE
@@ -45,10 +45,12 @@ export ARCH=`dpkg --print-installation-a
# images, however. Also, if you are using an NFS partition for
# some part of this, you must use this option.
# Paths to the mirrors
-export MIRROR=/ftp/debian
+#export MIRROR=/ftp/debian
+export MIRROR=/skolelinux/developer/local0/debian/debian
# Comment the following line if you don't have/want non-US
#export NONUS=/ftp/debian-non-US
+export NONUS=/skolelinux/developer/local0/debian/debian-non-US
# And this option will make you 2 copies of CD1 - one with all the
# non-US packages on it, one with none. Useful if you're likely to
@@ -56,17 +58,20 @@ export MIRROR=/ftp/debian
#export FORCENONUSONCD1=1
# Path of the temporary directory
-export TDIR=/ftp/tmp
+#export TDIR=/ftp/tmp
+export TDIR=/skolelinux/developer/local0/ftp/tmp
# Path where the images will be written
-export OUT=/rack/debian-cd
+#export OUT=/rack/debian-cd
+export OUT=/skolelinux/developer/local0/ftp/debian-cd
# Where we keep the temporary apt stuff.
# This cannot reside on an NFS mount.
-export APTTMP=/ftp/tmp/apt
+#export APTTMP=/ftp/tmp/apt
+export APTTMP=/skolelinux/developer/local0/ftp/tmp/apt
# Do I want to have NONFREE merged in the CD set
-# export NONFREE=1
+export NONFREE=1
# Do I want to have NONFREE on a separate CD (the last CD of the CD set)
# WARNING: Don't use NONFREE and EXTRANONFREE at the same time !
@@ -75,12 +80,12 @@ export APTTMP=/ftp/tmp/apt
# If you have a $MIRROR/dists/$CODENAME/local/binary-$ARCH dir with
# local packages that you want to put on the CD set then
# uncomment the following line
-# export LOCAL=1
+export LOCAL=1
# If your local packages are not under $MIRROR, but somewhere else,
# you can uncomment this line and edit to to point to a directory
-# containing dists/$CODENAME/local/binary-$ARCH
-# export LOCALDEBS=/home/joey/debian/va/debian
+# containing dists/$CODENAME/local/binary-$ARCH/non-official
+export LOCALDEBS=/local/ftp/skolelinux
# If you want a <codename>-secured tree with a copy of the signed
# Release.gpg and files listed by this Release file, then
@@ -102,6 +107,8 @@ export APTTMP=/ftp/tmp/apt
# export MKISOFS=/usr/bin/mkisofs
# export MKISOFS_OPTS="-r -T" #For normal users
# export MKISOFS_OPTS="-r -F . -T" #For symlink farmers
+
+export MKISOFS=/usr/bin/mkhybrid
# uncomment this to if you want to see more of what the Makefile is doing
#export VERBOSE_MAKE=1
Reply to: