resolv.conf empty when doing PXE installations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
casper (Ubuntu) |
Fix Released
|
High
|
Stéphane Graber | ||
Quantal |
Fix Released
|
High
|
Stéphane Graber | ||
resolvconf (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Quantal |
Invalid
|
High
|
Unassigned | ||
ubiquity (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Quantal |
Invalid
|
High
|
Unassigned |
Bug Description
Quantal daily image as of 20110615.
resolvconf 1.65ubuntu4.
In our environment we do network installs via PXE booting. We noticed that name resolution wasn't working during the late_command phase (e.g. any apt-get install operations in the ubiquity/
PXE passes IP information (including DNS) to the kernel, and in this case, the entry in /etc/network/
auto eth0
iface eth0 inet manual
What we found is that, with this configuration, /etc/resolv.conf will be unconfigured (even though DHCP *did* send DNS information):
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
if I change the /etc/network/
auto eth0
iface eth0 inet dhcp
then I run:
sudo ifup --force eth0
then /etc/resolv.conf is populated correctly and DNS resolution starts working.
This would be a regression from Precise, where the resolv.conf file gets correctly populated even if the interface is set as manual.
Changed in resolvconf (Ubuntu): | |
importance: | Undecided → High |
Changed in ubiquity (Ubuntu): | |
importance: | Undecided → High |
tags: | added: rls-q-incoming |
Changed in resolvconf (Ubuntu Quantal): | |
milestone: | none → quantal-alpha-2 |
Changed in casper (Ubuntu Quantal): | |
milestone: | none → quantal-alpha-2 |
tags: | removed: rls-q-incoming |
Changed in casper (Ubuntu Quantal): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in casper (Ubuntu Quantal): | |
milestone: | quantal-alpha-2 → quantal-alpha-3 |
importance: | Undecided → High |
Hi. At the point where the system has booted and /etc/resolv.conf is empty (except for the comment), please do the following and post the output here.
ls -l /run/resolvconf /interface /interface/ * ; do echo === $F === ; cat $F ; done /resolv. conf.d/ * ; do echo === $F === ; cat $F ; done ager/NetworkMan ager.conf dns-dnsmasq. conf
ls -l /run/resolvconf
for F in /run/resolvconf
for F in /etc/resolvconf
cat /etc/NetworkMan
cat /run/nm-