On 04/09/14 07:45 AM, Craig Small wrote: > On Sun, Aug 31, 2014 at 10:01:08PM -0400, Daniel Dickinson wrote: >> If you install debian/kfreefsd-amd64 inside a freebsd jail (sort of like >> LXC/chroot-on-steroids) >> then attempts to use the commands from procps gives the error that >> /proc/version does not exist >> even thogh linprocfs is in fact mounted. > It mustn't be mounted correctly then. libprocps needs the version file > detect procfs is mounted but also the version of procfs. > > Shouldn't the jail copy this file across? Any idea why this file doesn't > appear in the jail while other procfs file do? > > - Craig >
It seems that the distro (FreeNAS) automounts FreeBSD procfs on /proc of FreeBSD jails so the mount of linprocfs never actually happens. I will have to further testing to confirm this, but from outside the jail I can see that procfs is mounted on jail's proc. Since FreeNAS runs on FreeBSD that looks to me like FreeBSD's procfs is mounted on jail's /proc and is likely why the mount of linprocfs from inside the jail (by freebsd-utils) fails (assuming of course the it's not actually a case of needing to hack on things so that linprocfs gets mounted prior to jail startup). Regards, Daniel
signature.asc
Description: OpenPGP digital signature