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

My method for using packages from CVS and build a fully functional ISO image



(CC to list....as this drive a general interest topic)

Quoting Erich Waelde (Erich.Waelde@t-online.de):
> 
> Hi Christian,
> 
> > This is a great report, Erich, danke sehr. I'm sure it will be very
> > useful to the german translators.
> 
> You are welcome! I'm glad to contribute to the whole process at least a
> little bit --- I have not really succeeded to build installation images
> from cvs *and* *use* them. I need to sort this soon.

Not easy..:)

Basically you need to build all d-i packages. 

You also need one of already built ISO images from
http://gluck.debian.org/cdimage/testing/sid_d-i/. It will be sued as
an archive copy.

D-i packages which go in the initrd
(see pkg-lists/base, pkg-lists/cdrom/common and
pkg-lists/cdrom/<arch>)
should be dropped in "build/localudebs"

Then loopmount the ISO image and COPY it somewhere else.

Then drop all other packages (those NOT mentioned in the above files)
to pool/main in this copy.

Create a "config" file with something like this :

Dir {
    ArchiveDir "/home/bubulle/src/debian/d-i/archive";
    OverrideDir "indices";
    CacheDir "indices";
};
	    
TreeDefault {
    Directory "pool/";
};
		    
BinDirectory "pool/main" {
    Packages "dists/sarge/main/debian-installer/binary-i386/Packages";
    BinOverride "override";
    ExtraOverride "override.extra";
};
				   
Default {
    Packages {
        Extensions ".udeb";
             };
};


then go the this directory and run "apt-ftparchive generate config"

And finally, from the build directory:

(adapt it to your local paths)

#!/bin/sh
make clean
TYPE=cdrom fakeroot make image
cp myudebs/*udeb /home/vmware/bubulle/src/debian/d-i/archive/pool/main
MYPWD=`pwd`
cd /home/vmware/bubulle/src/debian/d-i/archive
apt-ftparchive generate config
cd $MYPWD
mkisofs -r -J -b cdrom-image.img -o test.iso dest /home/vmware/bubulle/src/debian/d-i/archive
#mkisofs -r -J -b cdrom-image.img -o test.iso dest /mnt/loop


A bit clumsy but this works, at least for me. This is how I tested the
modified partitioner (which does not go to initrd as it requires
fdisk-udeb which is huge)

For smaller package tests, you may modify pkg-lists/cdrom/<arch>, add
them there and drop the udebs to localudebs




Reply to: