From owner-dev-commits-doc-all@freebsd.org Wed Mar 3 16:55:49 2021 Return-Path: Delivered-To: dev-commits-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 619A0548F94 for ; Wed, 3 Mar 2021 16:55:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DrKrP2Fpmz4Yhs; Wed, 3 Mar 2021 16:55:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 402BB51E3; Wed, 3 Mar 2021 16:55:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 123Gtn93082092; Wed, 3 Mar 2021 16:55:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 123GtnBe082091; Wed, 3 Mar 2021 16:55:49 GMT (envelope-from git) Date: Wed, 3 Mar 2021 16:55:49 GMT Message-Id: <202103031655.123GtnBe082091@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Chris Rees Subject: git: b0fd969121 - main - handbook/linuxemu: show how to mount linprocfs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: crees X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b0fd96912189684a0ab542045c4560d1c72d60b2 Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2021 16:55:49 -0000 The branch main has been updated by crees: URL: https://cgit.FreeBSD.org/doc/commit/?id=b0fd96912189684a0ab542045c4560d1c72d60b2 commit b0fd96912189684a0ab542045c4560d1c72d60b2 Author: Alexis Praga AuthorDate: 2021-03-03 16:53:42 +0000 Commit: Chris Rees 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