Index: libexec/rc/rc.d/abi =================================================================== --- libexec/rc/rc.d/abi +++ libexec/rc/rc.d/abi @@ -41,6 +41,30 @@ fi rm -rf ${_tmpdir} fi + + mount -t linprocfs linprocfs /compat/linux/proc + if [ "$?" -ne 0 ]; then + warn "unable to mount /compat/linux/proc" + fi + + mount -t linsysfs linsysfs /compat/linux/sys + if [ "$?" -ne 0 ]; then + warn "unable to mount /compat/linux/sys" + fi + + # If /compat/linux/dev exists, it will shadow /dev for Linux binaries. + if [ -e "/compat/linux/dev" ]; then + warn "/compat/linux/dev should not exist" + fi + + # XXX: We could mount tmpfs instead, but there is no easy way + # to create the /dev/shm mountpoint. + if [ ! -e "/dev/shm" ]; then + ln -s /tmp /dev/shm + if [ "$?" -ne 0 ]; then + warn "unable to create /dev/shm" + fi + fi } abi_start()