Date: Wed, 21 Apr 2021 11:58:53 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 45aec46246fe - main - rc: make the 'linux' script explicitly load filesystem modules Message-ID: <202104211158.13LBwrBB039561@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=45aec46246fe61a3f45cf7da1c80850dc226f609 commit 45aec46246fe61a3f45cf7da1c80850dc226f609 Author: Edward Tomasz Napierala <trasz@FreeBSD.org> AuthorDate: 2021-04-21 11:54:29 +0000 Commit: Edward Tomasz Napierala <trasz@FreeBSD.org> CommitDate: 2021-04-21 11:54:37 +0000 rc: make the 'linux' script explicitly load filesystem modules This removes a minor annoyance with Linux jails, where you often want linux_mounts_enable="NO", yet you want those filesystems available for mounting in jails; normally mount(8) would result in kernel automatically loading the KLD, but this doesn't work inside jails or chroots. PR: 242955 Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D29725 --- libexec/rc/rc.d/linux | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libexec/rc/rc.d/linux b/libexec/rc/rc.d/linux index 882cf4012495..23cb5acc6f99 100755 --- a/libexec/rc/rc.d/linux +++ b/libexec/rc/rc.d/linux @@ -46,6 +46,12 @@ linux_start() # Linux uses the pre-pts(4) tty naming scheme. load_kld pty + # Explicitly load the filesystem modules; they are usually required, + # even with linux_mounts_enable="NO". + load_kld fdescfs + load_kld linprocfs + load_kld linsysfs + # Handle unbranded ELF executables by defaulting to ELFOSABI_LINUX. if [ `sysctl -ni kern.elf64.fallback_brand` -eq "-1" ]; then sysctl kern.elf64.fallback_brand=3 > /dev/null
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104211158.13LBwrBB039561>