git: b0fd969121 - main - handbook/linuxemu: show how to mount linprocfs

Chris Rees <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by crees:

URL: https://cgit.FreeBSD.org/doc/commit/?id=b0fd96912189684a0ab542045c4560d1c72d60b2

commit b0fd96912189684a0ab542045c4560d1c72d60b2
Author:     Alexis Praga <[email protected]>
AuthorDate: 2021-03-03 16:53:42 +0000
Commit:     Chris Rees <[email protected]>
CommitDate: 2021-03-03 16:53:42 +0000

    handbook/linuxemu: show how to mount linprocfs
    
    Some programs expect procfs and other Linuxisms.
    
    PR:             docs/195209
    Reported by:    ngie
---
 .../content/en/books/handbook/linuxemu/_index.adoc      | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/documentation/content/en/books/handbook/linuxemu/_index.adoc b/documentation/content/en/books/handbook/linuxemu/_index.adoc
index 532da8f564..29e73a0e94 100644
--- a/documentation/content/en/books/handbook/linuxemu/_index.adoc
+++ b/documentation/content/en/books/handbook/linuxemu/_index.adoc
@@ -111,6 +111,23 @@ On 64-bit machines, [.filename]#/etc/rc.d/abi# will automatically load the modul
 
 Since the Linux(R) binary compatibility layer has gained support for running both 32- and 64-bit Linux(R) binaries (on 64-bit x86 hosts), it is no longer possible to link the emulation functionality statically into a custom kernel.
 
+For some applications, [.filename]#/compat/linux/proc#, [.filename]#/compat/linux/sys#, and [.filename]#/compat/linux/dev/shm# may need to be mounted. Add this line to [.filename]#/etc/fstab#:
+
+....
+linprocfs  /compat/linux/proc     linprocfs   rw            0   0
+linsysfs   /compat/linux/sys      linsysfs    rw            0   0
+tmpfs      /compat/linux/dev/shm  tmpfs       rw,mode=1777  0   0
+....
+
+Then mount the filesystem accordingly:
+
+[source,bash]
+----
+# mount /compat/linux/sys
+# mount /compat/linux/proc
+# mount /compat/linux/dev/shm
+----
+
 [[linuxemu-libs-manually]]
 === Installing Additional Libraries Manually
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.