Andrew Pollock wrote:
tags 553211 + moreinfo
thanks

On Thu, Oct 29, 2009 at 06:24:22PM +0100, Michal Suchanek <hramr...@centrum.cz> 
wrote:
Package: dhcp3-client
Version: 3.1.1-6+lenny3
Severity: normal
File: /sbin/dhclient3


I am building debian-live images which boot form the network.

For this to work the network is first initialized and the root
filesystem mounted in in initramfs and then dhclient is started as
normal from initscripts to manage lease renewal.

The most common boot failure (other than the root filesystem not being
on the specified server) is dhclient fumbling the network setup.

dhclient runs external programs and scritps while the network is not
fully configured. This cannot work because the programs are on an
external server and they have to be fetched from there over the network.

This requires that the IP address, routing (default route) and
resolv.conf are in a working state every time dhclient attempts to run
anything.

A working state is either the state before dhclient started or the state
after it is finished setting up the network.

I wrote a script that moves dhcp3 enter hooks to exit hooks which seemed
to resolve most issues but this time I built a new image and tried to
boot it in a network different from the server subnet and it would fail
with default route unset.


I don't understand what your bugreport is about. What exactly is at fault
and what do you need changed?

If you just need basic networking configured from within your initramfs,
maybe look at ipconfig from klibc-utils


That works flawlessly.

However, when dhclient starts from the normal networking initscripts it kills the network if

 - dhclient enter hooks exist

or

- the client is not on the same subnet as the server that provides the root filesystem

I can disable dhclient but then I won't get lease renewal. This could work when I have control over the dhcp server and configure it to support this behaviour but in general this is not how dhcp should work.

Thanks

Michal



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to