/etc/resolv.conf missing on live CD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
relinux |
In Progress
|
High
|
Unassigned |
Bug Description
When creating an ISO of a working 12.04 Ubuntu system ISO doesn't copy the /etc/resolv.conf link created on the original OS by resolvconf package - which breaks networking (DNS).
That makes the resulting live ISO not very "live" - browsing and all DNS dependent stuff just fails.
I've also tried remastersys - same story.
Ugly workaround: after booting live iso or after installing a system from it I have to run "sudo dpkg-reconfigure resolvconf " and answer "ok-yes"... and then it's all good.
There is a related bug repoer with Ubuntu team: https:/
and it looks like someone was running into the same issue with Debian's custom ISO and they solved it:
http://
Changed in relinux: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in relinux: | |
assignee: | kokoye2007 (kokoye2007) → Aung Khant Zaw (railgunx) |
assignee: | Aung Khant Zaw (railgunx) → nobody |
I found the same problem. I have a workaround which is slightly less ugly - it doesn't require using dpkg-reconfigure interface.
Any files placed in the /etc/skel directory are transferred to the live users home directory when the live system starts
So if you do the following in the original system:
sudo pico /etc/skel/ netfixer. sh
and then add these two lines to the file:
echo 'nameserver 4.2.2.2' > /etc/resolv.conf d/networking restart
/etc/init.
then save
change permissions of the file:
sudo chmod 777 /etc/skel/ netfixer. sh
When the custom.iso is built you will have netfixer.sh in the home folder of the live user when booting
In the live system from the terminal:
sudo ./netfixer.sh
will restore network functionality.
It just gets the above fix down to a single console line with no interaction required. Takes about 4 seconds to run.
Thanks.