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

COPYCD processing for base-config



The following patches might still need some tweaking but they use the
functionality added through the debian-boot patch:

patch to base-config against current cvs

Index: lib/40apt-setup
===================================================================
RCS file: /cvs/debian-boot/base-config/lib/40apt-setup,v
retrieving revision 1.1
diff -u -r1.1 40apt-setup
--- lib/40apt-setup	2001/07/04 00:13:51	1.1
+++ lib/40apt-setup	2001/10/24 03:16:06
@@ -12,6 +12,23 @@
 	mv -f /etc/apt/sources.list.new /etc/apt/sources.list
 fi

+# Check for CD contents deployed via the COPYCD mechanism of the
+# boot-floppies
+if [ -d /dists ]; then
+  cat >/etc/apt/sources.list <<EOF
+deb file:/ woody main contrib non-free local
+deb file:/ woody non-US/main non-US/contrib non-US/non-free
+EOF
+  apt-get update
+  apt-get install copycd || true
+  dpkg --purge copycd || true
+  if [ -f /root/copycd ]; then
+    . /root/copycd
+    rm /root/copycd
+  fi
+  exit 0
+fi
+
 # Probe for cd's in the drive prior to setting up apt.
 apt-setup probe || true


patch against debian-cd to implement parameters when CD contents are
generated:

Index: tools/boot/woody/boot-i386
===================================================================
RCS file: /cvs/debian-boot/debian-cd/tools/boot/woody/boot-i386,v
retrieving revision 1.12
diff -u -r1.12 boot-i386
--- tools/boot/woody/boot-i386	2001/09/30 00:32:43	1.12
+++ tools/boot/woody/boot-i386	2001/10/24 03:19:31
@@ -20,6 +20,22 @@
 CDDIR=$2
 BOOTDIR=

+setbootopts()
+{
+# Set boot options in an image already generated by the boot-floppies
+# package. This requires accessing and modifying the boot floppy image.
+# Parameters
+# $1 image
+# $2 options
+        if [ "$2" == "" ]; then
+                return
+        fi
+        echo "drive u: file=\"$1\"" >~/.mtoolsrc
+        mtype u:syslinux.cfg | sed -e "s%^APPEND %APPEND $2 %" >~/SYSLINUX.CFG
+        mcopy -o ~/SYSLINUX.CFG u:
+        rm ~/SYSLINUX.CFG ~/.mtoolsrc
+}
+
 cd $CDDIR/..

 #
@@ -40,7 +56,9 @@
 # what kernel-type to put on what disk?
 # a null "" value will use the default boot-disk kernel
 #
-KTYPE[1]=""
+#CL Modification to use udma100-ext3 for the CD
+KTYPE[1]="udma100-ext3"
+#CL End
 KTYPE[2]="compact"
 KTYPE[3]="idepci"
 KTYPE[4]="ide"
@@ -58,6 +76,12 @@
 cp -f CD1/dists/$CODENAME/main/disks-$ARCH/current/images-2.88/${KTYPE[$NN]}/rescue.bin boot$N/boot/
 echo -n "-J -b boot/rescue.bin -c boot/boot.catalog boot$N"  > $N.mkisofs_opts

+#CL modification for TelemetryBox CD
+
+setbootopts boot$N/boot/rescue.bin "cdrom quiet copycd bootkbd=qwerty/us"
+
+exit 0
+#CL end

 # Only disk one gets the extra files installed
 #



Reply to: