maximilian attems
2010-Apr-22 04:54 UTC
[klibc] Bug#552554: ipconfig does not time out (klibc-utils)
hello, sorry for late reply, bin digging through klibc backlog and this seems the only unawswered one. thanks for patience. :) On Tue, 27 Oct 2009, Nico Schottelius wrote:> Package: klibc-utils > Version: 1.5.15-1hmm, unstable got newer klibc innbetwen, 1.5.17 should fix most of the listed pain, although 1.5.18-1 would be recommended, just uploaded. :)> > I'm trying to boot Debian from a different nic than the first one. > After some digging into klibc and initramfs, it seems like DEVICE=all > in /etc/initramfs-tools/initramfs.conf is near a solution > (I cannot reliable tell, which name the nic has, it may be eth0, eth1, > eth2, eth3, ...; as I've machines with one to four nics). > > /scripts/functions contains > > 266 case ${IP} in > 267 none|off) > 268 # Do nothing > 269 ;; > 270 ""|on|any) > 271 # Bring up device > 272 ipconfig -t 180 ${DEVICE} > 273 ;; > 274 dhcp|bootp|rarp|both) > 275 ipconfig -t 180 -c ${IP} -d ${DEVICE} > 276 ;; > 277 *) > 278 ipconfig -t 180 -d $IP > 279 > > But ipconfig prints only one line: > IP-Config: eth0 hardware address ... mtu 1500 DHCP RARP > > But it never times out or choses the next interface. > > Another problematic aspect in the functions script is > > 294 # source ipconfig output > 295 if [ -n "${DEVICE}" ]; then > 296 # source specific bootdevice > 297 . /tmp/net-${DEVICE}.conf > 298 else > 299 # source any interface as not exaclty specified > 300 . /tmp/net-*.conf > 301 fi > > which will fail, if DEVICE=all is set.with latest initramfs-tools from unstable default is DEVICE="" which means it picks up any ethX> So to summarise: > > - ipconfig from klibc does not time out, although it have been called with -t 180I'd like to see if you can still reproduce that with latest klibc!? it should no longer be the case.> - Debian does not documentate "how to boot from nfsroot with multiple nics in a box"yeah well, man initramfs sort of has pointers in the direction of linux-2.6 sources. now latest libklibc shipps README.ipconfig> - Debian seems not to support booting from multiple nics in their initramfs-scriptsfixed.> This mail should create a new bug at debian.org, but is also sent to > klibc@ to notify upstream about the problem.thanks for your feedback, looking forward to test against newer klibc. -- maks
Apparently Analagous Threads
- ipconfig does not time out (klibc-utils)
- Fwd: klibc-utils 1.5.17 ipconfig
- ipconfig bug with multiple interfaces
- [klibc:master] ipconfig: Document support for DNS server addresses
- [klibc:master] ipconfig: Ignore NTP server address and any additional fields