Re: Custom cd's

2002-06-01 Thread Richard Hirst

On Thu, May 30, 2002 at 11:20:21AM -0400, Ed Street wrote:
 Hello,
 
 I was wondering if anyone know of any methods where I could customize a
 debian cd set with just the packages I want and scaled down so it would
 fit on a mini and/or business card/credit card cd.  To give you some
 idea the size requirments
 Full cd = 650 megs
 Mini cd = 180 megs
 biz card cd = 51 megs
 Credit card cd = 52 megs
 
 Note these are the capacity of the blanks that I use and the size/shape
 does vary on the latter 2.

There is http://cvs.debian.org/boot-floppies/i386-specials/mini-iso.sh
which creates an ISO with base-only pkgs, from basedebs.tar.
Alternatively I wrote this little script that lets you put whichever
debs you want on there.  Tried it with the b-f2.4 flavour.  With just
the base debs on there the ISO is 31MB.  It doesn't provide any way to
automatically install non-base debs that are on the ISO, but you can
always apt-get install them once the system is up.

Richard



#!/bin/sh

# You should have a dir $DEBS containing all the .debs you want on
# the ISO.  You should have at least the base debs, as listed by
#
#	debootstrap --arch i386 --print-debs woody
#
# You might populate that dir by grabbing basedebs.tar from the archive.
# You should have a copy of the boot-floppies dir from an archive in
# $DISKS, and set $FLAVOUR to the one you want on your ISO (e.g. bf2.4)

set -e

DEBS=./debs
DISKS=/mirror/debian/dists/woody/main/disks-i386/current
FLAVOUR=bf2.4
ISO=mini.iso
WORKDIR=./work

rm -f $ISO
rm -rf $WORKDIR
mkdir -p $WORKDIR
( cd $WORKDIR; ln -s . debian )
mkdir $WORKDIR/.disk
echo Debian GNU/Linux 3.0 prerelease Woody ($(date '+%Y%m%d'))  $WORKDIR/.disk/info
touch $WORKDIR/.disk/kernel_installable
touch $WORKDIR/.disk/base_installable

mkdir -p $WORKDIR/pool
cp $DEBS/* $WORKDIR/pool

mkdir $WORKDIR/boot
mkdir -p $WORKDIR/dists/woody/main/disks-i386/current/images-1.44/$FLAVOUR
cp $DISKS/images-2.88/$FLAVOUR/rescue.bin $WORKDIR/boot
cp $DISKS/images-1.44/$FLAVOUR/rescue.bin $WORKDIR/dists/woody/main/disks-i386/current/images-1.44/$FLAVOUR
mkdir -p $WORKDIR/dists/woody/main/disks-i386/current/$FLAVOUR
cp $DISKS/$FLAVOUR/drivers.tgz $WORKDIR/dists/woody/main/disks-i386/current/$FLAVOUR

mkdir -p $WORKDIR/dists/woody/main/binary-i386

cat  $WORKDIR/dists/woody/main/binary-i386/Release  EOF
Archive: woody
Component: main
Origin: Debian
Label: Debian
Architecture: i386
EOF

( cd $WORKDIR;
  dpkg-scanpackages pool /dev/null  \
dists/woody/main/binary-i386/Packages
  cd dists/woody
  cat  Release  EOF
Origin: Debian
Label: Debian
Suite: testing
Codename: woody
Architectures: i386
Components: main
Description: Debian Woody - Not Released
EOF
  echo DATE: `date -R`  Release
  echo md5sum:  Release
  for i in Release Packages
  do
echo '' `md5sum main/binary-i386/$i | \
cut -d' ' -f1` `wc -c main/binary-i386/$i`  Release
  done
)

mkisofs -J -r -b boot/rescue.bin -o $ISO $WORKDIR




RE: Custom cd's

2002-06-01 Thread Ed Street

Hello,

I tried one of those, had to do some hack for bf2.4.  This I what I'm
trying to do.  I have a dump/restore image file or about 40 megs (cd #2)
I boot with cd #1 w/ bf 2.4 and base only (but I need the dump/restore
package on cd #1) and restore from cd #2 to the newly created
filesystem.

Ed

 -Original Message-
 From: Richard Hirst [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, June 01, 2002 9:07 AM
 To: Ed Street
 Cc: 'debian-cd'
 Subject: Re: Custom cd's
 
 
 On Thu, May 30, 2002 at 11:20:21AM -0400, Ed Street wrote:
  Hello,
  
  I was wondering if anyone know of any methods where I could 
 customize 
  a debian cd set with just the packages I want and scaled down so it 
  would fit on a mini and/or business card/credit card cd.  
 To give you 
  some idea the size requirments Full cd = 650 megs
  Mini cd = 180 megs
  biz card cd = 51 megs
  Credit card cd = 52 megs
  
  Note these are the capacity of the blanks that I use and the 
  size/shape does vary on the latter 2.
 
 There is 
 http://cvs.debian.org/boot-floppies/i386-specials/mini-iso.sh

which creates an ISO with base-only pkgs, from basedebs.tar.
Alternatively I wrote this little script that lets you put whichever
debs you want on there.  Tried it with the b-f2.4 flavour.  With just
the base debs on there the ISO is 31MB.  It doesn't provide any way to
automatically install non-base debs that are on the ISO, but you can
always apt-get install them once the system is up.

Richard



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Custom cd's

2002-05-30 Thread Steve Haslam

On Thu, May 30, 2002 at 11:20:21AM -0400, Ed Street wrote:
 I was wondering if anyone know of any methods where I could customize a
 debian cd set with just the packages I want and scaled down so it would
 fit on a mini and/or business card/credit card cd.  To give you some
 idea the size requirments

Hi Ed- if you use the debian-cd scripts to build CDs, you basically just
give it a list of packages at one stage during the process and specify a
size limit for the ISO.

 Full cd = 650 megs
 Mini cd = 180 megs
 biz card cd = 51 megs
 Credit card cd = 52 megs

The woody-mini-i386-1.raw file I make with a cut-down packages list is
161Mb. I'm not sure what you'd do to get it down to 50. Go axe-happy on the
package list though I guess :}

SRH
-- 
Steve Haslam  http://www.arise.demon.co.uk/ [EMAIL PROTECTED]
Debian GNU/Linux Maintainer   [EMAIL PROTECTED]
but I won't admit to needing you
I'll never say that's true, not to you  [sister machine gun]



msg03910/pgp0.pgp
Description: PGP signature


Re: Custom cd's

2002-05-30 Thread Stephen Mulcahy


Is this the method people are using the build the minimal netinst type
cd's aswell? It seems like overkill to have a full debian mirror to
build a 50-70 meg image. 

-stephen

On Thu, 30 May 2002, Steve Haslam wrote:

SH On Thu, May 30, 2002 at 11:20:21AM -0400, Ed Street wrote:
SH  I was wondering if anyone know of any methods where I could customize a
SH  debian cd set with just the packages I want and scaled down so it would
SH  fit on a mini and/or business card/credit card cd.  To give you some
SH  idea the size requirments
SH 
SH Hi Ed- if you use the debian-cd scripts to build CDs, you basically just
SH give it a list of packages at one stage during the process and specify a
SH size limit for the ISO.
SH 
SH  Full cd = 650 megs
SH  Mini cd = 180 megs
SH  biz card cd = 51 megs
SH  Credit card cd = 52 megs
SH 
SH The woody-mini-i386-1.raw file I make with a cut-down packages list is
SH 161Mb. I'm not sure what you'd do to get it down to 50. Go axe-happy on the
SH package list though I guess :}
SH 
SH SRH
SH 

-- 
   Stephen Mulcahy, Software Engineer, AO - Multivendor Systems Engineering, 
 HP Services, Hewlett-Packard Company, Ballybrit Business Park, Galway, Ireland
  tel: +353-91-754584 / mailto:[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Custom cd's

2002-05-30 Thread Steve Haslam

On Thu, May 30, 2002 at 07:19:31PM +0100, Stephen Mulcahy wrote:
 Is this the method people are using the build the minimal netinst type
 cd's aswell? It seems like overkill to have a full debian mirror to
 build a 50-70 meg image. 

It's what I'm using, but yes it's overkill. Especially since it has to cope
with installing different kernels on different CD's etc.. which is just
irrelevant for building small images. But I don't know any alternatives atm.

SRH
-- 
Steve Haslam  http://www.arise.demon.co.uk/ [EMAIL PROTECTED]
Debian GNU/Linux Maintainer   [EMAIL PROTECTED]
but I won't admit to needing you
I'll never say that's true, not to you  [sister machine gun]



msg03912/pgp0.pgp
Description: PGP signature


Re: Custom cd's

2002-05-30 Thread Stephen Mulcahy

On Thu, 30 May 2002, Steve Haslam wrote:

SH On Thu, May 30, 2002 at 07:19:31PM +0100, Stephen Mulcahy wrote:
SH  Is this the method people are using the build the minimal netinst type
SH  cd's aswell? It seems like overkill to have a full debian mirror to
SH  build a 50-70 meg image. 
SH 
SH It's what I'm using, but yes it's overkill. Especially since it has to cope
SH with installing different kernels on different CD's etc.. which is just
SH irrelevant for building small images. But I don't know any alternatives atm.

Would the author(s) of debian-cd care to provide an outline of the
major steps that debian-cd performs in constructing an image - it
would help others wanting to put together similar tools for such tasks
(I know, I know, documentation is evil .. but it can be useful ;)

I'm thinking of something that explains things to the level of making
a bootable image, copying in packages, creating a rescue disk image,
etc. (excuse me if this is gibberish, I'm not very familiar with the
process currently but would like an alternative to mounting existing
netinst images with a loopback device and inserting items into them).

Thanks,

-stephen

-- 
   Stephen Mulcahy, Software Engineer, AO - Multivendor Systems Engineering, 
 HP Services, Hewlett-Packard Company, Ballybrit Business Park, Galway, Ireland
  tel: +353-91-754584 / mailto:[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]