[Voyage-linux] DHCP Client IP allocation renewal bug

Dave Williams (spam-protected)
Fri Oct 14 14:41:04 HKT 2005


On 10:32, Fri 14 Oct 05, Punky Tse wrote:
> Dave,
> 
> I found that dhclient.leases is stored in /var/lib and it is usually 
> read-only and is not in ramdisk.  So I think dhcp-client is unable to 
> update this file.  Can you try to work around this my creating a symlink 
> to /rw/var/lib ?
> 
> All scripts in /etc/init.d and the booting framework is from debian. It 
> is very unlikely it has bugs.
> 
> Regards,
> Punky
> 
Yes thats what I thought to start with and did exactly what you
recommend - but it turns out that dhclient is not called explicitly in a script
but is launched from /sbin/ifup (from the dhcp term in
/etc/network/interfaces) with a hardcoded path for the leases.

If you do a strings /sbin/ifup |grep dhclient and you will see
dhclient -e -pf /var/run/dhclient.%iface%.pid -lf /var/run/dhclient.%iface%.leases %iface%
which confirms what happens in practice with the file locations.

I agree its strange given the Debian origins but havent found any
reasons unless we are using their scripts in a slightly different way.
(btw I'm using 0.2pre1 on a Soekris net4801 with a standard install).

regards
Dave





More information about the Voyage-linux mailing list