Index: portbuild =================================================================== --- portbuild (revision 246655) +++ portbuild (working copy) @@ -260,7 +260,12 @@ # set overrides for uname buildenv.client ${arch} ${chroot}${CLIENT_SRCBASE} -mount -t devfs foo ${chroot}/dev +devfspath="null zero random urandom stdin stdout stderr fd fd/*" +mount -t devfs devfs ${chroot}/dev +devfs -m ${chroot}/dev rule apply hide +for p in ${devfspath} ; do + devfs -m ${chroot}/dev/ rule apply path "${p}" unhide +done mount -t fdescfs fdesc ${chroot}/dev/fd umount -f ${chroot}/compat/linux/proc > /dev/null 2>&1