diff --git a/build_arch.sh b/build_arch.sh new file mode 100755 index 00000000..1365f14e --- /dev/null +++ b/build_arch.sh @@ -0,0 +1,111 @@ +#! /bin/sh +set -e + +## Wrapper script for build.sh +## See CONF.sh for the meaning of variables used here. + +# Set configuration file to be used for the build and source it +export CF=CONF.sh +. $CF +export DEBIAN_CD_CONF_SOURCED=true + +# The architecture for which to build the CD/DVD image +if [ "$2" ]; then + ARCH=$2 +else + ARCH=i386 +fi +export ARCH + +# The suite the installed system will be based on +export CODENAME=lenny +# The suite the udebs for the installer will be taken from +export DI_CODENAME=lenny + +## The debian-installer images to use (must be compatible with the suite +## (DI_CODENAME) from which udebs will be taken +## Use only one of the next three settings +## See also: tools/boot//boot-$ARCH scripts +# Use official images +export DI_WWW_HOME=http://ftp.nl.debian.org/debian/dists/lenny/main/installer-$ARCH/current/images/ +# Or, use daily built d-i images (most from http://people.debian.org) +#export DI_WWW_HOME=default +# Or, use custom (locally built) images +#export DI_DIR=$LOCALDEBS/images/$ARCH + +# Include local packages in the build +#export LOCAL=1 + +# Build only the first CD/DVD by default +# Uncomment/change separate values for full/dvd targets further down +# if you want to build more +export MAXCDS=1 + +# Options that include CODENAME should be set here if needed, not in CONF.sh +#export EXCLUDE1="$BASEDIR"/tasks/exclude-$CODENAME +#export UNEXCLUDE2="$BASEDIR"/tasks/unexclude-CD2-$CODENAME +#export UDEB_INCLUDE="$BASEDIR"/data/$CODENAME/udeb_include +#export UDEB_EXCLUDE="$BASEDIR"/data/$CODENAME/udeb_exclude +#export BASE_INCLUDE="$BASEDIR"/data/$CODENAME/base_include +#export BASE_EXCLUDE="$BASEDIR"/data/$CODENAME/base_exclude +#export SPLASHPNG="$BASEDIR/data/$CODENAME/splash-img.png" +#export RELEASE_NOTES_LOCATION="http://www.debian.org/releases/$CODENAME" + + +## Except for the MAXCDS settings, the rest of the script should just work + +# Set variables that determine the type of image to be built +export DISKTYPE="$1" +case $DISKTYPE in + BC) + export INSTALLER_CD=1 + ;; + NETINST) + export INSTALLER_CD=2 + ;; + CD) + unset INSTALLER_CD + #export MAXCDS=3 + ;; + DVD) + export INSTALLER_CD=3 + #export MAXCDS=1 + ;; + *) + echo "Usage: build_arch.sh BC|NETINST|CD|DVD []" + exit 1 + ;; +esac + +if [ "$LOCAL" ]; then + echo "Updating Packages files for local repository" + ./tools/Packages-gen.sh $CODENAME + if [ "$DI_CODENAME" ] && [ "$DI_CODENAME" != "$CODENAME" ]; then + ./tools/Packages-gen.sh $DI_CODENAME + fi +fi + +# Update debian-installer task files +if [ -d tasks ]; then + echo "Updating debian-installer task files..." + ( + cd tasks + ../tools/generate_di_list + ../tools/generate_di+k_list + ) +else + echo "Error: cannot find tasks directory" + exit 1 +fi + +echo +echo "Starting the actual debian-cd build..." +./build.sh $ARCH + +# Avoid conflicts when the repository is updated later +if [ -d .svn ]; then + echo + echo "Cleanup: reverting generated changes in tasks..." + svn revert tasks/debian-installer-* \ + tasks/debian-installer+kernel-* +fi diff --git a/data/lenny/amd64_businesscard_udeb_include b/data/lenny/amd64_businesscard_udeb_include index bfc81f03..0089df09 100644 --- a/data/lenny/amd64_businesscard_udeb_include +++ b/data/lenny/amd64_businesscard_udeb_include @@ -2,4 +2,3 @@ choose-mirror netcfg ethdetect pcmciautils-udeb -wireless-tools-udeb diff --git a/data/lenny/amd64_netinst_udeb_include b/data/lenny/amd64_netinst_udeb_include index e5ed8739..15532776 100644 --- a/data/lenny/amd64_netinst_udeb_include +++ b/data/lenny/amd64_netinst_udeb_include @@ -1,4 +1,3 @@ netcfg ethdetect pcmciautils-udeb -wireless-tools-udeb diff --git a/data/lenny/amd64_udeb_include b/data/lenny/amd64_udeb_include index e5ed8739..15532776 100644 --- a/data/lenny/amd64_udeb_include +++ b/data/lenny/amd64_udeb_include @@ -1,4 +1,3 @@ netcfg ethdetect pcmciautils-udeb -wireless-tools-udeb diff --git a/data/lenny/i386_businesscard_udeb_include b/data/lenny/i386_businesscard_udeb_include index bfc81f03..0089df09 100644 --- a/data/lenny/i386_businesscard_udeb_include +++ b/data/lenny/i386_businesscard_udeb_include @@ -2,4 +2,3 @@ choose-mirror netcfg ethdetect pcmciautils-udeb -wireless-tools-udeb diff --git a/data/lenny/i386_netinst_udeb_include b/data/lenny/i386_netinst_udeb_include index e5ed8739..15532776 100644 --- a/data/lenny/i386_netinst_udeb_include +++ b/data/lenny/i386_netinst_udeb_include @@ -1,4 +1,3 @@ netcfg ethdetect pcmciautils-udeb -wireless-tools-udeb diff --git a/data/lenny/i386_udeb_include b/data/lenny/i386_udeb_include index e5ed8739..15532776 100644 --- a/data/lenny/i386_udeb_include +++ b/data/lenny/i386_udeb_include @@ -1,4 +1,3 @@ netcfg ethdetect pcmciautils-udeb -wireless-tools-udeb diff --git a/data/lenny/powerpc_businesscard_udeb_include b/data/lenny/powerpc_businesscard_udeb_include index b5c5e7ea..6326d6c5 100644 --- a/data/lenny/powerpc_businesscard_udeb_include +++ b/data/lenny/powerpc_businesscard_udeb_include @@ -1,4 +1,3 @@ choose-mirror netcfg ethdetect -wireless-tools-udeb diff --git a/data/lenny/powerpc_netinst_udeb_include b/data/lenny/powerpc_netinst_udeb_include index 4a83dd2a..6f1c801c 100644 --- a/data/lenny/powerpc_netinst_udeb_include +++ b/data/lenny/powerpc_netinst_udeb_include @@ -1,3 +1,2 @@ netcfg ethdetect -wireless-tools-udeb diff --git a/data/lenny/powerpc_udeb_include b/data/lenny/powerpc_udeb_include index e5ed8739..15532776 100644 --- a/data/lenny/powerpc_udeb_include +++ b/data/lenny/powerpc_udeb_include @@ -1,4 +1,3 @@ netcfg ethdetect pcmciautils-udeb -wireless-tools-udeb diff --git a/debian/changelog b/debian/changelog index a546ea7b..e703338f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,16 @@ debian-cd (3.0.5) UNRELEASED; urgency=low + [ Steve McIntyre ] * Pre-cache apt's package information in large lumps rather than walk through it one package at a time. It's much faster. Closes: #470838 Needs a small re-arrangement: code from tools/add_packages now moves into tools/make_disc_trees.pl - -- Steve McIntyre <93sam@debian.org> Mon, 17 Mar 2008 23:25:12 +0000 + [ Frans Pop ] + * Remove wireless-tools-udeb from the lenny udeb_include files as it is not + required for wireless support (see also #474708). + + -- Frans Pop Fri, 11 Apr 2008 20:18:10 +0200 debian-cd (3.0.4) unstable; urgency=low diff --git a/tools/Packages-gen.sh b/tools/Packages-gen.sh new file mode 100755 index 00000000..2cdf62fe --- /dev/null +++ b/tools/Packages-gen.sh @@ -0,0 +1,29 @@ +#! /bin/sh +set -e + +if [ ! -d $LOCALDEBS ]; then + echo "error: LOCALDEBS variable not set" + exit 1 +fi +cd $LOCALDEBS + +distr=$1 +if [ -z "$distr" ]; then + echo "Usage: $(basename $0) " + exit 1 +elif [ ! -d dists/$distr/local/ ]; then + echo "No local repository matching '$distr' was found" + exit 1 +fi + +for repo in dists/$distr/local/binary-*; do + [ -d $repo ] || break + echo Creating Packages file for $repo... + apt-ftparchive packages $repo | gzip >$repo/Packages.gz +done +for repo in dists/$distr/local/debian-installer/binary-*; do + [ -d $repo ] || break + echo Creating Packages file for $repo... + apt-ftparchive packages $repo | gzip >$repo/Packages.gz +done +echo "Done."