| Line | |
|---|
| 1 | -*- outline -*- |
|---|
| 2 | |
|---|
| 3 | * PXE installer |
|---|
| 4 | |
|---|
| 5 | ** How to build |
|---|
| 6 | |
|---|
| 7 | Edit the build.sh and init files to put your repositories and pxemngr |
|---|
| 8 | urls. The build.sh script builds an initrd from a Debian Lenny |
|---|
| 9 | repository. You must run it as root, for example, like this: |
|---|
| 10 | |
|---|
| 11 | ./build.sh |
|---|
| 12 | |
|---|
| 13 | This builds a chroot and copy a special init in the lenny-root |
|---|
| 14 | directory. After the build, copy the kernel image to the pxe directory |
|---|
| 15 | and then create the initrd with a command like this as root: |
|---|
| 16 | |
|---|
| 17 | find . | cpio -o -H newc | gzip -v9 > /var/lib/tftpboot/pxeinstaller.img |
|---|
| 18 | |
|---|
| 19 | Then add a profile for pxemngr in |
|---|
| 20 | /var/lib/tftpboot/pxelinux.cfg/profiles/gen.prof like: |
|---|
| 21 | |
|---|
| 22 | prompt 0 |
|---|
| 23 | timeout 0 |
|---|
| 24 | default 0 |
|---|
| 25 | |
|---|
| 26 | label 0 |
|---|
| 27 | kernel vmlinuz-2.6.26-1-686 |
|---|
| 28 | append initrd=pxeinstaller.img ramdisk_size=210000 root=/dev/ram0 rw |
|---|
| 29 | |
|---|
| 30 | ** How to use it |
|---|
| 31 | |
|---|
| 32 | The init script downloads an install script from the follwing url: |
|---|
| 33 | $insturl/$profile/install.script and runs it. This way you have a |
|---|
| 34 | generic installer that can do whatever you want. |
|---|