Problem: Trying to kickstart a RHEL7 machine, but dracut can’t resolve my Foreman URL. In the dracut shell I see my /etc/resolv.conf is not correct. I see my Foreman server’s IP address as the only nameserver entry.
Expected outcome: The dracut should show the nameservers I specify in /etc/resolv.conf (which should allow the Foreman URL to resolve for the curl and continue on with the Kickstart).
Foreman and Proxy versions: Foreman v 1.19.1
Other relevant data:
My PXELinux template looks correct. When I review the template for the host I see the ks= pointing to my foreman URL (with the unattended/provision?token= portion) and I see my two nameserver statements pointing to the correct IPs for the DNS servers on my network.
However, when dracut fails and I drop into the shell, the /etc/resolv.conf has my Foreman IP instead of the DNS servers I’ve specified.
I’m not sure how dracut even got my Foreman IP. Did it somehow actually resolve my Foreman URL against the correct nameservers and then put that in /etc/resolv.conf?
My understanding is that dracut should generate the /etc/resolv.conf using the nameserver settings. I see those nameserver settings, with my DNS IPs, in the command line that shows up in the dracut “sos” log… So I’m really unclear where I’m going wrong.