/dev/null & zero inside chroot for make release

Julian H. Stacey jhs at berklix.com
Sat May 15 12:26:12 UTC 2010


Hi,
=?ISO-8859-15?Q?Tjado_M=E4cke?= wrote:
> Am 13.05.2010 19:44, schrieb Julian H. Stacey:
> > Hi Hackers,
> > Problem with /dev/null & /dev/zero inside a chroot:
> > I wanted to build a release from inside a chroot
> >
> > What sort of null & zero should be in chroot ?
> > man mknod ... deprecated ...
> > Should I be running a devfs (I'm not currently)
> > Or a jail ? (I dont really want that level of encapsulation ).
> >
> >   
> 
> http://www.ijs.si/software/amavisd/README.chroot
> 
> mknod dev/null    c  2 2   # FreeBSD

Thanks for trying to help :-)  But this is in Wrong.
Line 4 on that page:
	Last updated: 2005-08-11
5 years later, FreeBSD-8.0 has via ls -l /dev/null
crw-rw-rw-  1 root  wheel    0,  31 May 15 14:17 /dev/null
so both major & minor numbers have changed, command now would be
	mknod dev/null c 0 31
which I already posted in my original Thu, 13 May 2010 19:44:58 +0200
as having tried, but not good enough.

As I posted Fri, 14 May 2010 21:59:23 +0200 (but you may not have
seen when you posted)

> I found this works:
> 	mount -t devfs dev /usrb/chroot/dev

Thanks anyway.

Cheers,
Julian
-- 
Julian Stacey: BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
Mail plain text,  Not HTML quoted-printable Base64 http://www.asciiribbon.org


More information about the freebsd-hackers mailing list