From owner-freebsd-stable@FreeBSD.ORG Sun Apr 5 01:34:55 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 84C2290; Sun, 5 Apr 2015 01:34:55 +0000 (UTC) Received: from mail-ob0-x22c.google.com (mail-ob0-x22c.google.com [IPv6:2607:f8b0:4003:c01::22c]) (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 41BEB74; Sun, 5 Apr 2015 01:34:55 +0000 (UTC) Received: by obbfy7 with SMTP id fy7so3420261obb.2; Sat, 04 Apr 2015 18:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pLtfwRixcMF0+7dHvZLykaXDZGXPW9GCnU0tdrzbha0=; b=G+beB1naR78WXVTUuYvZPKaL0sp/pf3WCVNwcy98grVEVG/zeS45X3Z9JhiaWJjesM wfmgwKgCdoI+fm7Y0PTzUSjmG7Ti/UICioKlZyNX/JFGsAtG9ditdAYaBr9kuM5biwvV o/NJc0QWhYQu990rfH7lg4WT5Lk5Y+oAX6RTUo0uWDcEjuTuSeWfVBnmOBXGT7Pz7UA5 J/TzfZbUD0n9bsO9Z15gooy3HF6OJ8Aur7WiiPSCgj0muy1jCzN2V4Ocx97eOsRW7OmP XLeA3FEG/bkwVyJLMhFtEXDLBgGaHvWNn8h4HPhRlLeXXPHYXG1AszOTQF+lPbY2IPJb /bfA== MIME-Version: 1.0 X-Received: by 10.60.15.133 with SMTP id x5mr5437360oec.80.1428197694631; Sat, 04 Apr 2015 18:34:54 -0700 (PDT) Received: by 10.202.177.136 with HTTP; Sat, 4 Apr 2015 18:34:54 -0700 (PDT) In-Reply-To: References: <20150402183939.GC30115@ivaldir.etoilebsd.net> Date: Sun, 5 Apr 2015 03:34:54 +0200 Message-ID: Subject: Re: pkgng cannot fetch from PACKAGESITE with nanobsd.sh in FreeBSD 10.1 From: Zenny To: Brandon Allbery Content-Type: text/plain; charset=UTF-8 Cc: Baptiste Daroussin , "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2015 01:34:55 -0000 On 4/5/15, Zenny wrote: > On 4/5/15, Zenny wrote: >> Thanks Brandon. >> >> Yes, I did notice a typo. Missed a 'D' in NANO_WORLDDIR: >> pkg -c ${NANO_WORLDIR} install -fy ${PACKAGELIST} > > The above asked to do a 'pkg update', so accordingly, I added to > custom_packages the following: > > cust_NANOBSD_packages() { > env SSL_NO_VERIFY_HOSTNAME="true" \ > env SSL_NO_VERIFY_PPER="true" \ > pkg -c ${NANO_WORLDDIR} -f update > env SSL_NO_VERIFY_HOSTNAME="true" \ > env SSL_NO_VERIFY_PPER="true" \ > pkg -c ${NANO_WORLDDIR} install -y ${PACKAGELIST} > env SSL_NO_VERIFY_HOSTNAME="true" \ > SSL_NO_VERIFY_PEER="true" \ > pkg -c ${NANO_WORLDDIR} clean -a -y > rm -f ${NANO_WORLDDIR}/var/db/pkg/repo-*.sqlite > } It worked when I copied the /etc/resolv.conf to the ${NANO_WORLDDIR}. cp /etc/resolv.conf ${NANO_WORLDDIR}/etc/ > > But it fails with: > > + env SSL_NO_VERIFY_HOSTNAME=true env SSL_NO_VERIFY_PPER=true pkg -c > /usr/obj/nanobsd.NANOBSD-PFS//_.w -f update > pkg: illegal option -- f > Updating FreeBSD repository catalogue... > pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/meta.txz: No address > record > pkg: repository FreeBSD has no meta file, using default settings > pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/packagesite.txz: > No address record > pkg: Unable to update repository FreeBSD > > hmmmm.... > >> >> /z >> >> >> On 4/5/15, Brandon Allbery wrote: >>> On Sat, Apr 4, 2015 at 8:26 PM, Zenny wrote: >>> >>>> + cust_NANOBSD_packages >>>> + env SSL_NO_VERIFY_HOSTNAME=true env SSL_NO_VERIFY_PPER=true pkg -c >>>> install -fy nano >>>> pkg: illegal option -- f >>>> pkg: illegal option -- y >>>> pkg: chroot failed! >>>> >>>> When I install with -y flag on the host node, it works fine, but >>>> causing problem only in the chrooted environment. Where did I get >>>> wrong? Thanks in advance. >>>> >>> >>> Notice that ${NANO_WORLDDIR} didn't substitute anything; it used >>> "install" >>> as the chroot (which is why it failed) and -fy as global options instead >>> of >>> options to the "install" command it didn't see because -c ate it. >>> >>> -- >>> brandon s allbery kf8nh sine nomine >>> associates >>> allbery.b@gmail.com >>> ballbery@sinenomine.net >>> unix, openafs, kerberos, infrastructure, xmonad >>> http://sinenomine.net >>> >> >