From owner-freebsd-stable@FreeBSD.ORG Sun Apr 5 01:00:54 2015 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3FC55656; Sun, 5 Apr 2015 01:00:54 +0000 (UTC) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) (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 F3B4AADE; Sun, 5 Apr 2015 01:00:53 +0000 (UTC) Received: by obbec2 with SMTP id ec2so2979580obb.3; Sat, 04 Apr 2015 18:00:53 -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=C/zMhzQgezIJYl+chn+89pv9wVWL8V1PKfeBxD44yz4=; b=KeB8H94P1Mur/el4/O+/HV8iIML0pOXkCc6wO32an63MQwuDHskTKPGoPxsDfkHV3c bgOW9vRbWKX+aknDxPURTyQLs8O63q5fXsTn/4DvS2oKb7okaVVw9X6vFeZBoE6ZYcMI nuww0xc+XGSFMjtkKeBE5IwsL+YwGQhnjVwIpVuD3cvFPV+i1lbIY3eMG0wuyH7bD9H5 FjuUlCC7iQpY8PraVjVZRMFpZhBH/7usMj+rjY7itpVjITme2EMI5qRT1hJQL2jlxGbY xbuskmoAsZTaW0gB7LeIqfMGgleX/m6jgyGnliPZmIQY51KthXdT9OUrQIhh+6ELFdcd MpHg== MIME-Version: 1.0 X-Received: by 10.60.46.66 with SMTP id t2mr10557818oem.60.1428195653291; Sat, 04 Apr 2015 18:00:53 -0700 (PDT) Received: by 10.202.177.136 with HTTP; Sat, 4 Apr 2015 18:00:53 -0700 (PDT) In-Reply-To: References: <20150402183939.GC30115@ivaldir.etoilebsd.net> Date: Sun, 5 Apr 2015 03:00:53 +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:00:54 -0000 Thanks Brandon. Yes, I did notice a typo. Missed a 'D' in NANO_WORLDDIR: pkg -c ${NANO_WORLDIR} install -fy ${PACKAGELIST} /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 >