[Bug 1073] New: chroot looses nameresolution becouse resolv.conf links to nonexsistant resolvconf
http://bugs.skolelinux.no/show_bug.cgi?id=1073
Summary: chroot looses nameresolution becouse resolv.conf links
to nonexsistant resolvconf
Product: Skolelinux
Version: sarge-rc2
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: debian-edu-install
AssignedTo: debian-edu@lists.debian.org
ReportedBy: ronny@datapart-as.no
during /usr/sbin/ltsp-build-client's debootstrap of /opt/ltsp/i386,
/etc/resolv.conf is copied into the chroot. This file is a symlink to
/etc/resolvconf/run/resolv.conf. And since resolvconf is not included in the
chroot the chroot will not have a working nameresolution.
the workaround is to
rm /opt/ltsp/i386/etc/resolv.conf
cat /etc/resolv.conf >/opt/ltsp/i386/etc/resolv.conf
pere suggested adding the following to /usr/sbin/ltsp-build-client right after
debootstrap, this fixes all future invocations of the script.
# if /etc/resolv.conf is a symlink to for example resolvconf, replace it
# with the text
if [ -L $ROOT/etc/resolv.conf ] ; then
rm $ROOT/etc/resolv.conf
cat /etc/resolv.conf > $ROOT/etc/resolv.conf
fi
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Reply to: