pkg chroot problem

I run pkg --rootdir /compat/freebsd ins FreeBSD-set-minimal pkg and chroot /compat/freebsd. But in the chroot, the pkg is working, it will say Cannot open dev/null.
 
I also tried to run
pkg -o ABI=FreeBSD:14:i386 -o OSVERSION=1403000 --rootdir /compat/freebsd32 ins
I copied the /usr/share/keys/pkgbase-15 to pkgbase-14, but it's not working
 
I run pkg --rootdir /compat/freebsd ins FreeBSD-set-minimal pkg and chroot /compat/freebsd. But in the chroot, the pkg is working, it will say Cannot open dev/null.
See instructions for methods to install pkgbase in a chroot(8) environment and how to handle the /dev/null issue:


 
Back
Top