← Back to team overview

relinux-dev team mailing list archive

[Bug 1045757] Re: /etc/resolv.conf missing on live CD

 

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
/etc/init.d/networking restart

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.

-- 
You received this bug notification because you are a member of relinux
development team, which is subscribed to relinux.
https://bugs.launchpad.net/bugs/1045757

Title:
  /etc/resolv.conf missing on live CD

Status in relinux:
  New

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://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1000244
  and it looks like someone was running into the same issue with Debian's custom ISO and they solved it:
  http://lists.debian.org/debian-live/2009/04/msg00040.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/relinux/+bug/1045757/+subscriptions


References