← Back to team overview

relinux-dev team mailing list archive

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

 

For relinux 0.3a3, try replacing (line 638):

rm -rf X11/xorg.conf* resolv.conf hosts hostname timezone {m,fs}tab

with:

rm -rf X11/xorg.conf* hosts hostname timezone {m,fs}tab

to keep resolv.conf.

Ubuntu seems to have changed since the script was released, and
/etc/resolv.conf is now a link that points to
/run/resolvconf/resolv.conf. Because of this, casper will not create
/etc/resolv.conf if it doesn't exist, and will only update
/run/resolvconf/resolv.conf.

However, casper will only update /run/resolvconf/resolv.conf if it's
empty, so try adding:

emptyfile /run/resolvconf/resolv.conf

somewhere after the first replaced line. Ubuntu might try to replace the
contents of this file before relinux has a chance to compress this in
filesystem.squashfs, so I would advise you to disconnect your internet
before running relinux.

This is not a good fix in any way, because it modifies the filesystem of
your host computer (other than in /home/relinux), which was a strict
non-goal of relinux. However, I'm hoping it should work, at least
temporarily :)

If it doesn't work, try replacing the emptyfile line with:

cat << EOF > /run/resolvconf/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF

I'm very sorry, I had entirely forgotten about this bug report. Let me
know if this works! :)

A better fix would be to copy /run to dummysys, and modify
run/resolvconf/resolv.conf there, then add it to stage 1 of
filesystem.squashfs (and exclude it from stage 2). This will probably be
what I will do for relinux (if this works).

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

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

Status in relinux:
  In Progress

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