From owner-freebsd-current@freebsd.org Sun May 22 20:28:02 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8C99B46F64 for ; Sun, 22 May 2016 20:28:02 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B3BAB1341; Sun, 22 May 2016 20:28:02 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mail-it0-x22b.google.com with SMTP id z189so18688868itg.0; Sun, 22 May 2016 13:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=x40jTCsz4HseXZQFbAddU2WAESt0lbdcdroE/PxAmbg=; b=Xj0M6j35FJqD67Kjd2RwCOI1EO0vYlK2LCD4M2TQsDAAbbBwMmksDg8WxYLQkXidHp BJiEixXzOkoALWskpq7w0UEy/XMpQ9M2UzoTJJiV+jMh89KnnqUwFQHV6sFs7DI2uxtU TJjouoEHV5Uo687eb+sG6JKPrceHxnSn7gPjmugg1o1M0cqQj8QdreXtOpJM+jcoiSWq yJuOgai4GylwQ7nYNWlHNoRkXcvv1ob1Ba/76qi+SJlMtEPQYKr/hLRenFtHRkviiQc0 jH7jqy7+znS/dn5FkBtO62WulKJYYSidH9xmHC0T8Lykj3cdO01Y+aPSpUKjuNuZT+wN BOcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=x40jTCsz4HseXZQFbAddU2WAESt0lbdcdroE/PxAmbg=; b=f9WjDfb+4Ug8G4og0b3uo4xFiJJLv+gAqi0MdnLgd0g7qLL5z2mi4Y9a1TmME9eL17 E0h/qZIL6FRYXw0eF/X6b3FB1KR0Du/pPRUc9TbF7DYS+YRWS/3BeBmk25amFDlHjBgh Ydv8jDbMzB8wKlC4bM56Y9zwTmCB4i/cENfPxHAwhojRtCL8InVQRHbttLKDCHQNRvQZ b3yndyGfAvFp+zR6WRj8JHUts8SPXD/vXvc+TpZvxpfICBC9FmZVD9/rGCMfxhOQ0vjO uFnzHsbfPHxu9XCBLNKjWBGexm6C0Mm0/7UHOC+aDjtvgOBEtc3VHZtplC1jpbYVVkAR fy/A== X-Gm-Message-State: AOPr4FXg2EEHtMkI2f9kuYeH7EEIosO55EpD6VCrVhNmM0cHoZnrIp7ESptzvlgibcf0BLu2bmn3aqrKFyQYyw== MIME-Version: 1.0 X-Received: by 10.36.29.13 with SMTP id 13mr9413818itj.99.1463948881909; Sun, 22 May 2016 13:28:01 -0700 (PDT) Sender: kmacybsd@gmail.com Received: by 10.107.132.212 with HTTP; Sun, 22 May 2016 13:28:01 -0700 (PDT) In-Reply-To: <9BC1A0E1-696D-4C00-B8C8-B57C4DB3A8EF@kientzle.com> References: <9BC1A0E1-696D-4C00-B8C8-B57C4DB3A8EF@kientzle.com> Date: Sun, 22 May 2016 13:28:01 -0700 X-Google-Sender-Auth: kczaxtFvTPUMr2kwU5mTZSegK-4 Message-ID: Subject: Re: pkg chroot issues? From: "K. Macy" To: Tim Kientzle Cc: FreeBSD current , "bapt@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2016 20:28:03 -0000 On Sunday, May 22, 2016, 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? > > Cheers, > > Tim > > Just like you need to mount devfs you should have a resolv.conf in your chroot first. Just copy it over before running pkg. This works for me in my image creation script. -M > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org > " >