resolv.conf handling: resolve symlink inside chroot + drop resolvconf from 96-apt...
authorMichael Prokop <mika@grml.org>
Sun, 27 Nov 2011 02:25:05 +0000 (03:25 +0100)
committerMichael Prokop <mika@grml.org>
Sun, 27 Nov 2011 03:10:11 +0000 (04:10 +0100)
commit5a00bf358eac8ba6c00666f3fa6670d9c3f58b9b
treef4bf5db6758fb99cbd7c36948982cc8383115c20
parent090c35d7097cf9921038d8c83f77adabe83a676b
resolv.conf handling: resolve symlink inside chroot + drop resolvconf from 96-apt-listbugs

When resolving the symlink on a system using
/lib/init/rw/resolvconf/ for resolvconf files but the chroot uses
/run/resolvconf then the readlink call from outside the chroot
fails.

| # readlink -f /var/lib/jenkins/workspace/grml64_sid/grml_chroot/etc/resolv.conf
| /lib/init/rw/resolvconf/resolv.conf
| # chroot /var/lib/jenkins/workspace/grml64_sid/grml_chroot/ readlink -f /etc/resolv.conf
| /run/resolvconf/resolv.conf

Also drop the resolvconf code from 96-apt-listbugs.
It's too error prone (meeeeeh) so people are supposed to either
have something like dnsmasq running on the host or have a proper
/etc/resolv.conf prepared.
etc/grml/fai/config/hooks/instsoft.GRMLBASE
etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs