CD, NFSROOT and expiring DHCP lease

Thomas Lange lange at cs.uni-koeln.de
Mon Oct 24 20:52:52 CEST 2022


Hmm, my last patch does not work, becaus building the initrd by dracut
fails if the kill-dhclient.sh script does not exist.
I've tried it another way by adding this to fai-make-nfsroot:

sed -i -e '/kill-dhclient.sh/d' $NFSROOT/usr/lib/dracut/modules.d/35network-legacy/module-setup.sh

It worked, the dhclient was started inside the initrd but not killed.
So the dhclient is still running.
But this also had problems when using an nfsroot mount, when I forced
the lease-time to be short. I guess the dhclient cannot renew the IP
because it accesses files from inside the initrd which are not
available any more when FAI is running.

So, I'm not sure if it works from fai-cd. How should we fix #987779?
Any ideas?

-- 
regards Thomas


More information about the linux-fai mailing list