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

Bug#646137: live-boot-initramfs-tools: dhcp lease is not renewed when using netboot with nfsroot

On 21 October 2011 19:21, Robert Euhus
<euhus-liste1@rrzn.uni-hannover.de> wrote:
> Package: live-boot-initramfs-tools
> Version: 2.0.15-1
> Severity: normal
> I am using a debian live system which is started via netboot.
> The root file system lives in a squashfs-file on a NFS share (as usual)
> and the network adress is acquired via dhcp.
> Here is my /proc/cmdline:
> boot=live vga=791 live-config=hostname,openssh-server netboot=nfs nfsroot= live-media-path=debian-live/$
> When looking at the network traffic one can see that the DHCP lease is
> never renewed. This means it might happen, that this address is given to
> another client while my client still uses it.
> Cause:
> The root of the problem lies in Bug #627166
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627166
> "ipconfig: ignores dhcp options":

Not really.

> Does work: I have just started 'dhclient' from the comand line when the system
> is up. This spawns a dhclient deamon which properly renewes the lease as needed.
> The network is not disconnected and everything is fine. I will try starting
> dhclient from rc local later on, but don't see a reason why this should not work.

Unfortunately, this does not work for me.

The root issue is that ISC dhclient *does* down the network interface
when it is re-configured.

This is an issue known for years.

I wrote a patch that prevents this issue and raised the issue in the
ISC dhcp mailinglist (they don't have a public BTS).

The response I got was that this is a long-standing known issue and
all I got was another patch from another use of dhclient, no developer

In the light of the dhclient script being likely 'sample' 'requiring
site customization' this would have to be fixed by Debian but the
Debian maintainer of dhclient does not seem very responsive either.
This is reported in Debian as bug 553211. Until that is fixed
debian-live cannot support netbooting over dhcp properly.

You can pull the patch from there and use the appropriate live-config
option to enable dhcp which live-config disables by default because
dhclient is broken.



Reply to: