Re: CD, NFSROOT and expiring DHCP lease

2022-10-24 Diskussionsfäden Thomas Lange
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,

Re: CD, NFSROOT and expiring DHCP lease

2022-10-24 Diskussionsfäden Thomas Lange
Hi Andrew, yes this makes it more worse, I can confirm it. The new approach will be to stop the initrd from killing dhclient. Here's the patch, but it's not yet tested: diff --git a/bin/fai-make-nfsroot b/bin/fai-make-nfsroot index 3b9fbb6e..02b332a4 100755 --- a/bin/fai-make-nfsroot +++

Re: CD, NFSROOT and expiring DHCP lease

2021-08-20 Diskussionsfäden Andrew Ruthven
On Thu, 2021-04-29 at 22:48 +1200, Andrew Ruthven wrote: > >     > Is there an approach so that ISO images created with fai-cd > > perform > >     > DHCP lease renewals? > > As a workaround, you could write a hook, that starts dhclient. > > Since the hooks are on the ISO and will be executed, this

Re: CD, NFSROOT and expiring DHCP lease

2021-04-29 Diskussionsfäden Andrew Ruthven
On Thu, 2021-04-29 at 12:04 +0200, Thomas Lange wrote: > > > > > > On Thu, 29 Apr 2021 21:21:06 +1200, Andrew Ruthven < > > > > > > and...@etc.gen.nz> said: > >     > Dracut acts as a DHCP client, but is a single shot only. Once > the >     > lease expires nothing on the machine building rebuilt

Re: CD, NFSROOT and expiring DHCP lease

2021-04-29 Diskussionsfäden Thomas Lange
> On Thu, 29 Apr 2021 21:21:06 +1200, Andrew Ruthven > said: > Dracut acts as a DHCP client, but is a single shot only. Once the > lease expires nothing on the machine building rebuilt renews > it. Hi Andrew, you are right, in FAI the kernel (or maybe the initrd) configures