DEVFS in a chroot?

Eivind Olsen eivind at aminor.no
Fri Apr 30 05:11:19 PDT 2004


Hello.

I'm running some processes in a chroot (not a jail) and I need to have a 
small /dev in the chroot directory containing for example random and 
urandom.
As I understand it, the recommended way to do this is to use devfs, but I'm 
not sure how to go about doing that.

Should I mount /var/chroot/dev as type devfs?
And I'd need to create some devfs-rulefile?
I'm not sure how I should tie this together in a clean way in FreeBSD 5.2.1 
(RELENG_5_2), any suggestions/pointers?

-- 
Regards / Hilsen
Eivind Olsen
<eivind at aminor.no>


More information about the freebsd-current mailing list