kernel - adjust devfs mount point according to init_chroot loader variable
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Wed, 2 Feb 2011 09:45:16 +0000 (18:45 +0900)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Sat, 5 Feb 2011 09:31:01 +0000 (18:31 +0900)
commit358c69e996e6dd4278ea6a92d322b973548c4ce8
treeb4edbc74ab47ca114449126995af7d3927dd9950
parent5a8d63ada5efd0220feed39368ebb4e169cea377
kernel - adjust devfs mount point according to init_chroot loader variable

/dev is mounted before /sbin/init is executed, so when it chroot() itself
and execute the shell, the chroot()'ed space doesn't contain the mounted
devfs inside it and the shell gets stuck.
sys/kern/vfs_conf.c