Comment 14 for bug 175324

Revision history for this message
Stéphane Graber (stgraber) wrote :

Not having the actual LTSP setup in Hardy anymore, I made a quick simulation for that fix.
My network is running with a DHCP proxy, br0 is the interface connected to that network:

root@vivaldi:~/test# cat /boot/initrd.img-2.6.24-26-openvz | gzip -d | cpio -i
48821 blocks
root@vivaldi:~/test# chroot . bin/sh
BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu12) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# ipconfig --help
ipconfig: invalid option --
# ipconfig br0
IP-Config: br0 hardware address 00:00:20:bd:4e:ba mtu 1500 DHCP RARP

root@vivaldi:~# apt-get install libklibc klibc-utils
...

root@vivaldi:~/new-initrd# cat /boot/initrd.img-2.6.24-26-openvz | gzip -d | cpio -i
48821 blocks
root@vivaldi:~/new-initrd# chroot . /bin/sh
BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu12) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# ipconfig br0
IP-Config: br0 hardware address 00:00:20:bd:4e:ba mtu 1500 DHCP RARP
IP-Config: br0 guessed broadcast address 10.x.x.255
IP-Config: br0 complete (from 10.x.x.115):
 address: 10.x.x.203 broadcast: 10.x.x.255 netmask: 255.255.255.0
 gateway: 10.x.x.1 dns0 : 10.x.x.117 dns1 : 0.0.0.0
 domain : revolutionlinux.com
 rootserver: 10.x.x.116 rootpath:
 filename : /netboot/pxelinux.0
#

What I did
- Uncompressed the initrd
- Started ipconfig from within it (as LTSP does)
--> It failed (hanging waiting for a reply)
- Updated klibc on the host
- Rebuilt the initrd
- Started ipconfig from within it (as LTSP does)
--> It worked (Got all the network details)

So that should prove that the fix does what it's supposed to do