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

Re: Trying the boot floppiess on a powerbook



#include <hallo.h>
MaX wrote on Tue Jan 22, 2002 um 11:22:22PM:

> witch the better way to test  these floppy in a machine without Floppy disk?
> 
> It's correct to create a El torito bootable Cd with the 2.88 image?

It's okay.

> Or there is a better way?

Sure:

#!/bin/bash
# make-iso.sh - creates my own netinst image
#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

# change this to limit the number of included flavors

#for z in resc2880udma100-ext3.bin ; do
for z in `cd $bindir ; echo *2880*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

Gruss/Regards,
Eduard.
-- 
> To do is to be    (Karl Marx)
> To be is to do    (Jean Paul Sartre)
> Do be do be do (Frank Sinatra)
jabbadabbadoo (Fred Feuerstein)



Reply to: