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 setup doesn't work in an environment where you have multiple search
domains and it's getting even more complicated if your network mirror is on
one of those search domains that is different from $domain.
A way to "fix" this would be to call udhcpc -O search and change the line
above accordingly. with something like "if $search then echo search $search
>> $cfg else echo search $domain >> $cfg" or something along those lines.
The udhcpc call would also have to be updated by adding the -O flag to
include the search domain.
Any other tips are welcome, because for now, we have to make a different
preseed file for each mirror location we have on our infra.

Thanks

Reply via email to