Date: Tue, 19 Jan 2016 10:40:50 +0000 From: Matthew Seaman <matthew@freebsd.org> To: freebsd-questions@freebsd.org Subject: Re: resolver not working in a chroot Message-ID: <569E12B2.5090302@freebsd.org> In-Reply-To: <569e05b6.2RStkLc7SZIg/dVM%perryh@pluto.rain.com> References: <569e05b6.2RStkLc7SZIg/dVM%perryh@pluto.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IF0JJMAuBTPNHFGSWO4gHGrdh9WIt8phj Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/19/16 09:45, Perry Hutchison wrote: > The resolver is not working in a chroot (to the 10.2 memstick image, > with its /tmp, /var/run, and /var/tmp made writable by mounting tmpfs > on them): > # chroot -u 0 -g 0 -G 105,0,5,20,25 /mnt ping pkg.FreeBSD.org > ping: cannot resolve pkg.FreeBSD.org: Host name lookup failure >=20 > but it works when not in a chroot: > # ping pkg.FreeBSD.org > PING pkg.FreeBSD.org (96.47.72.71): 56 data bytes > 64 bytes from 96.47.72.71: icmp_seq=3D0 ttl=3D51 time=3D97.329 ms > ... >=20 > What would cause this? >=20 You've mounted the 10.2 memstick image on /mnt? Do you have a devfs mounted inside the chroot? Try running: # mount -t devfs devfs /mnt/dev and then try your chroot'ed command again. Interesting to see if that helps. Cheers, Matthew --IF0JJMAuBTPNHFGSWO4gHGrdh9WIt8phj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJWnhKyAAoJEABRPxDgqeTnzeUP/jfZVWoE9k0Dw/rtgtUbvHQl jzK202H16Mt1K7EiIvp5y/7i7ibNicViiadVqIKmHg3vUgFfRS14d0Av7UKXkiDt 6oKslSmc/P/y46NQR5DxRr930Ck/vy9tc+llBQkAiCzQHWikj6zyEji+10hRxDif RI3F+S1OkrtJwKr0w3HkirY13PWtKI+AQY0nQPCAE57aogqKChBd3rW4jLOfD5/2 bWs4XN3z6/RbsojZSAIn+VqNHbCk3jGEJEOFA4FHjSqeL8Vi04HaV5tLUkyP426A YQlJ7EM1uqONBUPgTif0nZLZGlc2Mtcrp+Li7ggnwhHFUNbLvUQ9AOqOztLnL+SA JAbHrb5U5kX/J/724n+taSgVN4UuEHaf2cUPS+Hhiq2s0zopOOHx6BWkzgvI0ApF LwdYUvwAByu8Jt0Z7g7ZeSQvnlOW4aIlNhDoTyTqQrSRnayi7SYBb1aLUDrKQIgW dV8RSsDqjCTBI10n7D37CHY0iMmehTluAXIvio41CPtEjok6F2PqzVlQlj27FdxK Gum1327mkuazhYPhtBOYBL/QlvL1iXI1yv09us4vcRCwMZ0x2RXpL1dc2cPPs0lM MmNQSM7Xq813QCI9Z3S/ATMSvfuc8nh5PzdpTl8cuMiouJ8SIkTNoyWuHUuY9co4 swrlqYt6fkRkRe8UDEB5 =X7/A -----END PGP SIGNATURE----- --IF0JJMAuBTPNHFGSWO4gHGrdh9WIt8phj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?569E12B2.5090302>