|
This kit allows you to generate your own ISOs with your own modules and
configuration.
You need these tools: Perl, mtools, and mkisofs. And cdrecord if you are
burning to CD on the same machine. Sorry, it's only tested on Linux. I
have no other platforms to test on so I can't help you there.
1. Become root.
2. Mount the CD or the CD image as an ISO9660 filesystem.
3. Create a working directory called cdfw, and under that a directory
called cd and copy the contents of the CD there. E.g.
mkdir -p /root/cdfw/cd
cd /media/cdrom
cp -a * /root/cdfw/cd
cd /root/cdfw
Unless otherwise stated, all the steps below assume you are in
/root/cdfw.
4. Make all directories and files writable in the disk version.
find cd | xargs chmod u+w
5. Copy the Makefile up one level for convenience.
cp cd/Makefile .
6. Assign the drive f: to a disk image both in Makefile and in
/root/.mtoolsrc. e.g.
drive f: file="/root/cdfw/floppyfw-2.0.4.img"
7. Copy floppyfw-2.0.4.img to /root/cdfw.
cp /somewhere/floppyfw-2.0.4.img .
8. Extract config and firewall.ini and do what you want to them. If you
want to be able to extract and replace other config files, see Makefile.
make extract
# edit them, etc
make replace
9. Add any extra modules and scripts you want to the image. Remember the
limitation on space is due to the floppy image, not due to the CD image.
mcopy foo.bz2 f:packages/
10. If you don't have enough space, start with a bigger floppy image,
e.g. 2.88 MB "floppy". I leave the reader how to work out do this with
mtools, i.e. I haven't tried it :-), but it probably involves mapping a
1.44 MB image and a 2.88 MB image to disk files and copying all the
files to the larger image. If you are adding a lot of files, you may
also have to increase the ramdisk size by creating a new one with a
larger initial size and copying the old initrd to the new one. Also
the kernel may need to be recompiled to increase the size limit on the
ramdisk.
11. If you wish to add anything to the CD, the directory cd will be the
top directory of the resulting CD so just put it there. The contents of
the CD will be available after booting Linux and mounting. The provided
kernel of floppyfw may not have support for ISO9660 filesystems so you
may have to recompile the kernel or load the module, depending.
12. Unpack the mkffwnb image while in /.
(cd /; tar zxvf -) < cd/mkffwnb.tgz
13. If you wish another timezone, edit Makefile and change the timezone
file passed to mkffwnb.pl.
14. Now make the CD image. This will leave the ISO image in
floppyfw-2.0.4.iso.
make cdimage
15. Burn to CD and hopefully it will work. This requires a BIOS that can
boot from CD, of course. |
|