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

updates to INSTALLER-HOWTO: pxeboot



The INSTALLER-HOWTO refers to

http://lists.debian.org/debian-testing/2003/debian-testing-200311/msg00098.html

for a reference to pxeboot. However, this document is, as of today, no
longer correct. For example, we now use devfs.



This is how I got it working. I did not follow steps 1. to 6. because I was
doing the same thing on Mandrake. Instead, those steps are from the
original document.

1. apt-get install tftpd-hpa dhcp3-server syslinux wget

2. adduser --group --system tftpd       # Should create user & group tftpd

3. In /etc/inetd.conf:

tftp dgram udp wait root /usr/sbin/in.tftpd -p -u tftpd -s
 /usr/local/tftpboot

(this is actually one long line)

4. In /etc/dhcp3/dhcpd.conf:
option domain-name "example.org";                       # FIXME
option domain-name-servers 10.15.123.2, 192.168.23.5;   # FIXME
# PXE Boot support for d-i testing
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.101 192.168.1.200;
  option routers 192.168.1.1;
  filename "/pxelinux.0";
}

5. mkdir -p /usr/local/tftpboot/pxelinux.cfg

6. cp /usr/lib/syslinux/pxelinux.0 /usr/local/tftpboot/

7. create the default config. The two lines after "append" are one big, long
line.

cat > /usr/local/tftpboot/pxelinux.cfg/default
prompt 1
say "Welcome to the PXE boot server!"
say "Will boot debian-installer in 10 seconds..."
timeout 100

label d-i
        kernel dilinux
        append vga=normal initrd=dinetboot.gz ramdisk_size=8192
          root=/dev/rd/0 init=/linuxrc devfs=mount,dall rw
        ipappend 1

(the append .. root= lines are one, long line)
        
8. cat > /usr/local/bin/getdailyimage.sh

#!/bin/sh -e
BUILDROOT=http://http.us.debian.org/debian/dists/testing/main/installer-i386/current/images/
cd /usr/local/tftpboot
mkdir -p /d-i
wget --continue ${BUILDROOT}/netboot-initrd.gz -O dinetboot.gz
wget --continue ${BUILDROOT}/vmlinuz -O dilinux

9. chmod +x /usr/local/bin/getdailyimage.sh

-- 
Try Linux 2.6 from BitKeeper for PXA2x0 CPUs at
http://www.mn-logistik.de/unsupported/linux-2.6/



Reply to: