Index: defaults/devfs.rules =================================================================== RCS file: /usr/repo/src/etc/defaults/devfs.rules,v retrieving revision 1.3 diff -u -p -r1.3 devfs.rules --- defaults/devfs.rules 22 Jan 2004 20:53:15 -0000 1.3 +++ defaults/devfs.rules 30 Apr 2005 12:56:56 -0000 @@ -64,3 +64,10 @@ add path stderr unhide add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login + +# Devices required for named. +# +[devfsrules_named=5] +add include $devfsrules_hide_all +add path null unhide +add path random unhide Index: rc.d/named =================================================================== RCS file: /usr/repo/src/etc/rc.d/named,v retrieving revision 1.21 diff -u -p -r1.21 named --- rc.d/named 24 Apr 2005 01:51:22 -0000 1.21 +++ rc.d/named 30 Apr 2005 13:01:25 -0000 @@ -58,14 +58,8 @@ chroot_autoupdate() # Mount a devfs in the chroot directory if needed # - if [ ! -c ${named_chrootdir}/dev/random -o \ - ! -c ${named_chrootdir}/dev/null ]; then - umount ${named_chrootdir}/dev 2>/dev/null - mount_devfs devfs ${named_chrootdir}/dev - fi - devfs -m ${named_chrootdir}/dev rule apply hide - devfs -m ${named_chrootdir}/dev rule apply path null unhide - devfs -m ${named_chrootdir}/dev rule apply path random unhide + umount ${named_chrootdir}/dev 2>/dev/null + devfs_domount ${named_chrootdir}/dev devfsrules_named # Copy local timezone information if it is not up to date. #