Hide all the devices in the chroot dev except for random and null.

This commit is contained in:
Doug Barton 2004-09-30 09:15:21 +00:00
parent 13e3f0b717
commit 4550c56f2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135958

View File

@ -58,6 +58,9 @@ chroot_autoupdate()
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
# Copy local timezone information if it is not up to date.
#