[Bug 1073] New: chroot looses nameresolution becouse resolv.conf links to nonexsistant resolvconf
Summary: chroot looses nameresolution becouse resolv.conf links
to nonexsistant resolvconf
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
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
cat /etc/resolv.conf > $ROOT/etc/resolv.conf
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.