Differences between revisions 8 and 9
Revision 8 as of 2008-03-01 00:12:31
Size: 1270
Editor: ?BrendanMalias
Comment:
Revision 9 as of 2008-03-01 00:42:02
Size: 2155
Editor: ?BrendanMalias
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
 | debian-installer}}}  | debian-installer
 | tmp (for initrd repacking and goodies)
}}}
Line 10: Line 11:
Required packages:
 * `apt-get install kernel-wedge build-essential subversion fakeroot`
=== Required packages: ===
 * `apt-get install kernel-wedge build-essential subversion fakeroot wget`
Line 17: Line 18:
[[BR]]
Line 19: Line 19:
Dealing with kernel-wedge: === Dealing with kernel-wedge: ===
Line 25: Line 25:
Dealing with debian-installer: === Dealing with debian-installer: ===
Line 28: Line 28:
 * `sed -ie 's/DEBIAN_RELEASE =  * `sed -ie 's/DEBIAN_RELEASE = .*/DEBIAN_RELEASE = lenny/g' ./config/common`
 * `fakeroot make build_monolithic`

{{{
Now, in the dest/ directory contains your new monolithic .iso. Two problems are:
 * It doesn't contain the atl2 installer script
 * It isn't a usb image, only a LiveCD

It is quite easy to convert a LiveCD to a USB image, but the atl2 installer script is not as easy to inject. If you have a better way than the way portrayed below, feel free to add it to this page.
}}}

=== Dealing with the atl2 script: ===
 * `cp dest/monolithic/initrd.gz ../../../tmp`
 * `cd ../../../tmp`
 * `gunzip initrd.gz`
 * `cpio -i < initrd`
 * `rm initrd`
 * `cd ./usr/lib/pre-pkgsel.d/`
 * `wget http://bbqsrc.net/eeepc/debian/05atl2-install`
 * `chmod +rx 05atl2-install`
 * `find ./ | cpio -H newc -o > ./initrd`
 * `gzip initrd`

The exact process for mastering the sid-usb.img.gz linked from ["DebianEeePC/HowTo/Install"] was not documented the first time. In brief, we followed ["DebianInstaller/Modify/CustomKernel"] to build a lenny installer with the atl2 module. The following instructions require a sid build system.

These instructions will assume a directory structure of: {{{| (base directory) \

  • | kernel-wedge | debian-installer | tmp (for initrd repacking and goodies)}}}

Required packages:

Dealing with kernel-wedge:

  • cd linux-kernel-di-i386-2.6

  • echo atl2 >> ./modules/i386/nic-modules

  • kernel-wedge build-all

  • cp -r ../*.udeb ../../debian-installer/installer/build/localudebs/

Dealing with debian-installer:

  • cd ../../debian-installer/installer/build

  • sed -ie 's/#monolithic/monolithic/g' ./config/i386.cfg

  • sed -ie 's/DEBIAN_RELEASE = .*/DEBIAN_RELEASE = lenny/g' ./config/common

  • fakeroot make build_monolithic

Now, in the dest/ directory contains your new monolithic .iso. Two problems are:
 * It doesn't contain the atl2 installer script
 * It isn't a usb image, only a LiveCD

It is quite easy to convert a LiveCD to a USB image, but the atl2 installer script is not as easy to inject. If you have a better way than the way portrayed below, feel free to add it to this page.

Dealing with the atl2 script:

  • cp dest/monolithic/initrd.gz ../../../tmp

  • cd ../../../tmp

  • gunzip initrd.gz

  • cpio -i < initrd

  • rm initrd

  • cd ./usr/lib/pre-pkgsel.d/

  • wget http://bbqsrc.net/eeepc/debian/05atl2-install

  • chmod +rx 05atl2-install

  • find ./ | cpio -H newc -o > ./initrd

  • gzip initrd