Date: Sun, 22 May 2016 22:32:44 +0200 From: "bapt@freebsd.org" <bapt@freebsd.org> To: Tim Kientzle <tim@kientzle.com> Cc: FreeBSD current <freebsd-current@freebsd.org> Subject: Re: pkg chroot issues? Message-ID: <20160522203243.GF11189@ivaldir.etoilebsd.net> In-Reply-To: <20160522203108.GE11189@ivaldir.etoilebsd.net> References: <9BC1A0E1-696D-4C00-B8C8-B57C4DB3A8EF@kientzle.com> <20160522203108.GE11189@ivaldir.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Sun, May 22, 2016 at 10:31:08PM +0200, bapt@freebsd.org wrote: > On Sun, May 22, 2016 at 01:24:12PM -0700, Tim Kientzle wrote: > > Crochet has some experimental hooks to install packages onto the system being built, but this seems to be hitting problems due to limitations in 'pkg -c'. In particular, it seems that pkg performs the chroot before it does any network lookups. This is a problem if the chroot is not a complete system environment (which it cannot be when you're building an image for another system). > > > > There's some further discussion on github: > > > > https://github.com/freebsd/crochet/issues/141 > > > > Any suggestions? > > > I'll reply directly to github thanks for pointing me to the ticket > > Best regards, > Bapt As people might only follow this thread and not the ticket here is what I answered: pkg supports an option for that which is pkg -o NAMESERVER= to avoid having to copy resolv.conf it was broken in 1.8 but I fixed it in pkg 1.8.0 which has been released today. the problem with pkg -c is that it calls chroot very early. To avoid that problem we have added pkg -r which does not perform any chroot at all therefore having not network issue, but the ports tree are is not yet entirely aware of it and some scripts (preinstall/postinstall) might cause some issues. at least creating users from the script is safe in that regard. for most simple case that should work. Best regards, Bapt [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXQhdrAAoJEGOJi9zxtz5aknYP/RVH6AR9zlL8hp/4LmnieJ3F YBsk506sWNJukzGdiqESzPk4aE81j0y9W96o3w/A45Gv/agjB8cvXpv/6r7vX5wq bmsuI3qPQANnBUayQjY43wT4++1MY/VVSzBn6mdi3A9fpfZFi2mSEf46z9HpI/aA QKUKqGgINgTnI7ItcO/FRbfEnBk7ETT1l7uHWJpNNNldkRCHoj9eWqvRzCVl0d2d u/++u31Ips7LOWDePzRzJOr3ayrRQRQSL+nku/GBTb9RB8s1WMj7FPFRJNTjxY+4 6FhtGKDFjyRaEFqmgjZZZ5zmu5qQkEbX83kd3V/pJ+HsNO288+5ZoIz9yD7B+zzo N1vA2fuHTCXkOptQmRhEa0CJ+M0OOVWs2pxdLYLl9nX8eXTvPxF2TwC1dn2Q+h9T oiaXxXOKs8UB0QvsJ4iaT+PeXlXgkMg+VAXxmJq+2+kyCpYFHkoMXEBRxFiB3vJP IsUpjabUG3Ix2YWDGIHCwFU/HiXTf9cqOi/bYiohSezIaSitOSX8KqrkxEmivxsH 8Q2TqKCWh9ff3E10x1t4m4HqeNnSKKOlsq4nuz2UdWy2GZyUPfXfxzN6HwgaHlKr Qsou/PrBDiH3bRJWvV44u2Squtmu2nv6b7WAmX3vdrASUmW0rMQyEfpker4ldcyJ DBnX0TU2a7/ptcAn/f1Q =LLV3 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160522203243.GF11189>
