bootstrapping /usr/sbin/pkg inside a jail
Fbsd8
fbsd8 at a1poweruser.com
Wed May 7 14:56:52 UTC 2014
Łukasz Wąsikowski wrote:
> W dniu 2014-05-07 16:07, Fbsd8 pisze:
>
>> It's not a question of getting to the internet which ping shows works.
>> Its that going to
>> ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-current/Latest/
>> using a browser or ftp shows that directory path does not exist.
>>
>> So it all boils down to, where is pkg program getting the url from and
>> why is there difference between host and jail?
>>
>> This is more a pkgng question then a jail question.
>
> pkg(8) use location from /usr/local/etc/pkg.conf (before 1.2.x IIRC) and
> from /usr/local/etc/pkg/repos/ directory in 1.2.x and newer.
>
This is a fresh virgin install of 10.0. /etc only contains /etc/pkg
directory with out any pkg.conf file or other sub-directories until
after you exec on the host the first pkg command to bootstrap the
downloading and install of pkg itself after which /etc/pkg.conf.sample
shows up. Inside of the jail is just like the host was before bootstrap
of pkg program.
More information about the freebsd-pkg
mailing list