Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 2014 16:35:16 -0700
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        Fbsd8 <fbsd8@a1poweruser.com>
Cc:        pkg <pkg@freebsd.org>, questions <questions@freebsd.org>
Subject:   Re: bootstrapping /usr/sbin/pkg inside a jail
Message-ID:  <CAG=rPVdUFCgSNGwxboovKpXPRbrAdLBf9p5vrWHSEJsb%2BjwRcA@mail.gmail.com>
In-Reply-To: <536AB6AE.4000009@a1poweruser.com>
References:  <5369407E.9060008@a1poweruser.com> <53694241.6050207@my.hennepintech.edu> <536A3E10.4030902@a1poweruser.com> <CAG=rPVfqUFGm0-_pogHfZM5OcPCxO2hWEc5rSgkzCfmUgV72gw@mail.gmail.com> <536A9BB5.9080905@a1poweruser.com> <CAG=rPVd23smYh2QkD9FiY20GJKDPcfqjydvzrKOFr8vu4BGBRg@mail.gmail.com> <536AB6AE.4000009@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 7, 2014 at 3:41 PM, Fbsd8 <fbsd8@a1poweruser.com> wrote:
> Craig Rodrigues wrote:

> Figured out the problem.
> To create my jail filesystem I download and uncompress the base.txz file
> just like bsdinstall does. This base filesystem has a environment variable
> PACKAGESITE populated with the content needed by the old pkg_add -r command
> which is no longer part of the 10.0 base. bsdinstall must do an unsetenv
> PACKAGESITE on that environment variable during the install process to
> prepare the system for pkgng.
>
> The solution for me is after creating my jail filesystem from the base.txz
> file, I start the jail and then jexec jailname tcsh to open a console to the
> jail. From inside of the jail I issue "unsetenv PACKAGESITE" to disable that
> environment variable. Then issue pkg and the pkg bootstrap works as
> expected.
>
> Now global system environment variables must be saved in some file that gets
> read during the system boot process. Does anyone know where that file is
> located and what its called?

Hi,

Very good analysis.  Thanks for doing it.

Inside your jail, can you do the following as root:

find /etc /var | xargs grep -l PACKAGESITE

--
Craig



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVdUFCgSNGwxboovKpXPRbrAdLBf9p5vrWHSEJsb%2BjwRcA>