Here: https://docs.freebsd.org/en/books/handbook/linuxemu/#linuxemu-advanced These two lines: linprocfs /compat/linux/proc linprocfs rw,late 0 0 linsysfs /compat/linux/sys linsysfs rw,late 0 0 Looking at their manpages say contrary: SYNOPSIS linproc /compat/linux/proc linprocfs rw 0 0 SYNOPSIS linsys /compat/linux/sys linsysfs rw 0 0 From a user's PoV this is confusing. What is now correct for the first column?
My understanding is to use the filesystem type name in the first column: linprocfs /compat/foo/proc linprocfs rw,late 0 0 linsysfs /compat/foo/sys linsysfs rw,late 0 0 (Here "foo" is used as a generic system type either "linux" or "ubuntu" or something else depending on how you set up your linux compatibility layer.) See https://docs.freebsd.org/en/books/handbook/linuxemu/#linuxemu-advanced for additional details. That being said, linproc /compat/foo/proc linprocfs rw,late 0 0 linsys /compat/foo/sys linsysfs rw,late 0 0 also work when running the linux compatibility layer. So it appears both can be correct.
(In reply to Michael Osipov from comment #0) Moreover, the two lines are unnecessary. grahamperrin:~ % head -n 1 /etc/fstab ; grep -v \# /etc/fstab | sort -f # Device Mountpoint FStype Options Dump Pass# /dev/ada1p1 /boot/efi msdosfs rw 0 0 /dev/ada1p2.eli none swap sw,late 0 0 fdescfs /dev/fd fdescfs rw 0 0 proc /proc procfs rw 0 0 tmpfs /tmp tmpfs rw,mode=1777 0 0 grahamperrin:~ % mount | grep linux | sort -f devfs on /compat/linux/dev (devfs) fdescfs on /compat/linux/dev/fd (fdescfs) linprocfs on /compat/linux/proc (linprocfs, local) linsysfs on /compat/linux/sys (linsysfs, local) tmpfs on /compat/linux/dev/shm (tmpfs, local) grahamperrin:~ %
Sorry, I overlooked the sentence: > … Filesystems mounted by the rc script will not work for > Linux processes inside chroots or jails; …
ziaee, do you see room for improvement to fix confusion? Based on this I found a bug in Bastille.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=88b9ca860ef332d4d32e97e0f8a166f12cffc8e3 commit 88b9ca860ef332d4d32e97e0f8a166f12cffc8e3 Author: Michael Osipov <michaelo@FreeBSD.org> AuthorDate: 2025-10-17 09:24:12 +0000 Commit: Michael Osipov <michaelo@FreeBSD.org> CommitDate: 2025-10-17 12:46:57 +0000 manpages: Use canonical names for Linux filesystems The manpages of linprocfs(5) and linsysfs(5) document incomplete names without "fs" suffix. Make them identical to other filesystems. PR: 283079 MFC after: 3 days Reviewed by: ziaee, markj Differential Revision: https://reviews.freebsd.org/D53155 share/man/man4/linprocfs.4 | 4 ++-- share/man/man4/linsysfs.4 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/doc/commit/?id=7471dacca1123c7b538ebe0c72f22c3750542778 commit 7471dacca1123c7b538ebe0c72f22c3750542778 Author: Michael Osipov <michaelo@FreeBSD.org> AuthorDate: 2025-10-16 20:49:20 +0000 Commit: Michael Osipov <michaelo@FreeBSD.org> CommitDate: 2025-10-17 13:03:21 +0000 Use canonical names for Linux filesystems The manpages of linprocfs(5) and linsysfs(5) document canonical names, use these in the handbook. PR: 283079 Reviewed by: emaste, markj Differential Revision: https://reviews.freebsd.org/D53141 documentation/content/hu/books/handbook/desktop/_index.adoc | 4 ++-- documentation/content/zh-cn/books/handbook/desktop/_index.adoc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Manpages and handbook updated.
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=6ec0fbd8ff11c7180e52e9c30a071da8f532fd47 commit 6ec0fbd8ff11c7180e52e9c30a071da8f532fd47 Author: Michael Osipov <michaelo@FreeBSD.org> AuthorDate: 2025-10-17 09:24:12 +0000 Commit: Michael Osipov <michaelo@FreeBSD.org> CommitDate: 2025-10-20 12:26:21 +0000 manpages: Use canonical names for Linux filesystems The manpages of linprocfs(5) and linsysfs(5) document incomplete names without "fs" suffix. Make them identical to other filesystems. PR: 283079 MFC after: 3 days Reviewed by: ziaee, markj Differential Revision: https://reviews.freebsd.org/D53155 (cherry picked from commit 88b9ca860ef332d4d32e97e0f8a166f12cffc8e3) share/man/man4/linprocfs.4 | 4 ++-- share/man/man4/linsysfs.4 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=9e40b536cb589a1f54b58c1e53b6e5ec682dd4df commit 9e40b536cb589a1f54b58c1e53b6e5ec682dd4df Author: Michael Osipov <michaelo@FreeBSD.org> AuthorDate: 2025-10-17 09:24:12 +0000 Commit: Michael Osipov <michaelo@FreeBSD.org> CommitDate: 2025-10-20 12:32:17 +0000 manpages: Use canonical names for Linux filesystems The manpages of linprocfs(5) and linsysfs(5) document incomplete names without "fs" suffix. Make them identical to other filesystems. PR: 283079 MFC after: 3 days Reviewed by: ziaee, markj Differential Revision: https://reviews.freebsd.org/D53155 (cherry picked from commit 88b9ca860ef332d4d32e97e0f8a166f12cffc8e3) share/man/man5/linprocfs.5 | 4 ++-- share/man/man5/linsysfs.5 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=25150c4f98c0b128267bd7be0c1b83a228a5688b commit 25150c4f98c0b128267bd7be0c1b83a228a5688b Author: Michael Osipov <michaelo@FreeBSD.org> AuthorDate: 2025-10-17 09:24:12 +0000 Commit: Michael Osipov <michaelo@FreeBSD.org> CommitDate: 2025-10-20 12:34:34 +0000 manpages: Use canonical names for Linux filesystems The manpages of linprocfs(5) and linsysfs(5) document incomplete names without "fs" suffix. Make them identical to other filesystems. PR: 283079 MFC after: 3 days Reviewed by: ziaee, markj Differential Revision: https://reviews.freebsd.org/D53155 (cherry picked from commit 88b9ca860ef332d4d32e97e0f8a166f12cffc8e3) share/man/man5/linprocfs.5 | 4 ++-- share/man/man5/linsysfs.5 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
A commit in branch releng/15.0 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=5773d056fb4ac151d2897fa3051e8c5243aa79f8 commit 5773d056fb4ac151d2897fa3051e8c5243aa79f8 Author: Michael Osipov <michaelo@FreeBSD.org> AuthorDate: 2025-10-17 09:24:12 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2025-10-20 17:48:13 +0000 manpages: Use canonical names for Linux filesystems The manpages of linprocfs(5) and linsysfs(5) document incomplete names without "fs" suffix. Make them identical to other filesystems. Approved by: re (cperciva) PR: 283079 MFC after: 3 days Reviewed by: ziaee, markj Differential Revision: https://reviews.freebsd.org/D53155 (cherry picked from commit 88b9ca860ef332d4d32e97e0f8a166f12cffc8e3) (cherry picked from commit 6ec0fbd8ff11c7180e52e9c30a071da8f532fd47) share/man/man4/linprocfs.4 | 4 ++-- share/man/man4/linsysfs.4 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)