Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 2004 14:13:30 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Eivind Olsen <eivind@aminor.no>
Cc:        freebsd-current@freebsd.org
Subject:   Re: DEVFS in a chroot? 
Message-ID:  <5473.1083327210@critter.freebsd.dk>
In-Reply-To: Your message of "Fri, 30 Apr 2004 14:14:18 %2B0200." <348620619.1083334458@[10.122.7.143]> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <348620619.1083334458@[10.122.7.143]>, Eivind Olsen writes:
>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?

Yes:

	mount -t devfs randomargument	/var/chroot/dev


>And I'd need to create some devfs-rulefile?

Only if reducing the contents of that devfs instance.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5473.1083327210>