Bug#1069897: Netcfg to get search domain

2024-05-03 Thread Frédéric Guyot
This will require a bit more work than anticipated. The patch posted above will only do half of the job. netcfg will call udhcp with the "-O search" option added which will update /etc/resolv.conf with the correct search domain values assuming that the patch for /etc/udhcpc/default.script is also

Re: udhcpc search domain

2024-04-26 Thread Frédéric Guyot
Thanks for pointing me in the right direction. I wasn't sure it required a bug report since it's not really a bug but maybe more of a feature request ? Here is the bug report link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069897 Thanks again

Bug#1069897: Netcfg to get search domain

2024-04-26 Thread Frédéric Guyot
Package: netcfg Version: 1.187 As explained in this thread: https://lists.debian.org/debian-boot/2024/04/msg00061.html , netcfg doesn't read the search domain property sent by dhcp to make it available to udhcpc and fill /etc/resolv.conf + lease file properly. This setup doesn't work in an environ

Re: Re: udhcpc search domain

2024-04-26 Thread Frédéric Guyot
That's great, thank you for your fast response/fix. Just need to update netcfg now. Should I create a new post on the mailing list ?

Re: udhcpc search domain

2024-04-26 Thread Frédéric Guyot
After looking at this a bit more closely , it seems that netcfg is calling udhcpc with limited set options. see here: https://salsa.debian.org/installer-team/netcfg/-/blob/master/dhcp.c#L38 We would just need to add "search" to this list of options and update the /etc/udhcpc/default.default.scrip

udhcpc search domain

2024-04-26 Thread Frédéric Guyot
Hi, During the installation process, debian installer runs udhcpc to get the dhcp lease and populate the resolv.conf file. The /etc/udhcpc/default.script that runs at the end of an udhcpc call does the following to populate the search domain in /etc/resolv.conf: echo search $domain >> $cfg This se