How is /dev populated ?
Is this done by the kernel or a script.
Must I copy /dev to a newly install ?
Is this done by the kernel or a script.
Must I copy /dev to a newly install ?
No. The devfs is not meant to survive a reboot.Must I copy /dev to a newly install?
Those lines are necessary to create a working chroot environment since the udev software isn't built prior to entering the chroot. Otherwise you'll be missing all sorts of things in your /dev directory when you enter the chroot. TheIt's interesting to see the difference with linux,
mount --bind
lines for Linux are similar to using mount_nullfs(8) on FreeBSD, so similar lines might also be used on FreeBSD if you're not using a jail for whatever reason. mknod
command. Which in turn required knowing the major/minor numbers for all possible devices. Obviously, this was tedious, error prone, and required expertise. It also has problems during installation on new hardware (what if the only physical console is connected via serial port /dev/ttyX0, but the root file system image was built for /dev/ttya0).