Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Apr 2015 03:34:54 +0200
From:      Zenny <garbytrash@gmail.com>
To:        Brandon Allbery <allbery.b@gmail.com>
Cc:        Baptiste Daroussin <bapt@freebsd.org>, "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: pkgng cannot fetch from PACKAGESITE with nanobsd.sh in FreeBSD 10.1
Message-ID:  <CACuV5sBdqM-jchXJ-23cyytAQjwjN_d2d6QyXYWC2WA=Nwwgww@mail.gmail.com>
In-Reply-To: <CACuV5sCcAW7qvAHzyH9fSsNUgY7r7AXp_RLeCezUobGBELhYhQ@mail.gmail.com>
References:  <CACuV5sB%2BqECSAii%2BeQgXiMGw2qHuqHWf9UCRQGcaP0N0dgPkxA@mail.gmail.com> <20150402183939.GC30115@ivaldir.etoilebsd.net> <CACuV5sBj7dMPoqWU=7GRLD7cURZGutboG%2BZ1kStHkADTshY5xA@mail.gmail.com> <CACuV5sA-99eyxS3Ed_CF4OjADEc6Db1AsCfF0FjCeKj5R27XyQ@mail.gmail.com> <CAKFCL4UCzQCQKLUbDm2o2E-T-zWrQof-NrRtjMG5%2BexMCu%2BUKA@mail.gmail.com> <CACuV5sCLKPYq=iHdAdCAxYerhDzHhiPS_nrJj6WJKcmUXnEpSQ@mail.gmail.com> <CACuV5sCcAW7qvAHzyH9fSsNUgY7r7AXp_RLeCezUobGBELhYhQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/5/15, Zenny <garbytrash@gmail.com> wrote:
> On 4/5/15, Zenny <garbytrash@gmail.com> 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 <allbery.b@gmail.com> wrote:
>>> On Sat, Apr 4, 2015 at 8:26 PM, Zenny <garbytrash@gmail.com> 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
>>>
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACuV5sBdqM-jchXJ-23cyytAQjwjN_d2d6QyXYWC2WA=Nwwgww>