#include <hallo.h> Philip Blundell wrote on Fri Dec 07, 2001 um 09:26:28PM: > > I wonder if there would be any mileage in having boot-floppies build a set of > minimalist i386 CD images that included just images-2.88/rescue.bin and > drivers.tgz for each of the flavours. I use the attached skript to build such CDs. Since dumping 6 images on floppies is not fun. Gruss/Regards, Eduard. -- Feinrippträger! Fernlichtabsteller! Falschatmer! Frühblinker!
#!/bin/bash #set -x #set -e if test ! "$1"; then echo echo "Usage: make-iso.sh <boot-flavor>" echo "boot-flavor is the flavor to be used as boot image. Default is udma100-ext3." echo bootfl=udma100-ext3 else bootfl=$1 fi echo Please use and reuse CDRWs. Stop the polution. echo Press Return to continue... read export bindir=`pwd` ARCH=`dpkg-architecture -qDEB_BUILD_ARCH` release=`pwd`/isotmp masterdir=$release test -e $release && mv $release $release.`date +%s` release=$release/dists/woody/main/disks-$ARCH/current mkdir -p $release cd $masterdir ln -s . debian for z in `cd $bindir ; echo *2880*bin`; do #for z in resc2880udma100-ext3.bin ; do y=${z%.bin} y=${y#resc2880} # y = pure flavor name # x = dir name x="./$y" cd $release mkdir -p images-2.88/$y mkdir -p images-1.44/$y mkdir -p $y 2>/dev/null|| true cp -la $bindir/drivers$y.tgz $x/drivers.tgz cp -la $bindir/drivers$y.tgz images-2.88/$y/drivers.tgz cp -la $bindir/$z images-2.88/$y/rescue.bin cp -la $bindir/drv14$y-?.bin images-1.44/$y cd images-1.44/$y ; mmv "drv14$y-*" "driver-#1" unset x y z done echo Minimal CD structure created. Now building $bootfl.iso... cd $bindir mkisofs -v -r -V$bootfl -o $bootfl.iso -b dists/woody/main/disks-$ARCH/current/images-2.88/$bootfl/rescue.bin $masterdir
Attachment:
pgpztWAQ6SqhP.pgp
Description: PGP signature