DEVFS in a chroot?

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


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 
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>

More information about the freebsd-current mailing list