Page MenuHomeFreeBSD

D20322.diff
No OneTemporary

D20322.diff

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()

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 22, 11:44 AM (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31976295
Default Alt Text
D20322.diff (866 B)

Event Timeline