Page MenuHomeFreeBSD

D22320.id64210.diff
No OneTemporary

D22320.id64210.diff

Index: libexec/rc/rc.conf
===================================================================
--- libexec/rc/rc.conf
+++ libexec/rc/rc.conf
@@ -640,6 +640,7 @@
# the file can be deleted after the boot completes.
sysvipc_enable="NO" # Load System V IPC primitives at startup (or NO).
linux_enable="NO" # Linux binary compatibility loaded at startup (or NO).
+linux_skip_mounts="NO" # Do not mount Linux-specific filesystems at startup.
clear_tmp_enable="NO" # Clear /tmp at startup.
clear_tmp_X="YES" # Clear and recreate X11-related directories in /tmp
ldconfig_insecure="NO" # Set to YES to disable ldconfig security checks
Index: libexec/rc/rc.d/linux
===================================================================
--- libexec/rc/rc.d/linux
+++ libexec/rc/rc.d/linux
@@ -46,12 +46,14 @@
sysctl kern.elf32.fallback_brand=3 > /dev/null
fi
- _emul_path="/compat/linux"
- mount -o nocover -t linprocfs linprocfs "${_emul_path}/proc"
- mount -o nocover -t linsysfs linsysfs "${_emul_path}/sys"
- mount -o nocover -t devfs devfs "${_emul_path}/dev"
- mount -o nocover -t fdescfs fdescfs "${_emul_path}/dev/fd"
- mount -o nocover,mode=1777 -t tmpfs tmpfs "${_emul_path}/dev/shm"
+ if ! checkyesno linux_skip_mounts; then
+ _emul_path="/compat/linux"
+ mount -o nocover -t linprocfs linprocfs "${_emul_path}/proc"
+ mount -o nocover -t linsysfs linsysfs "${_emul_path}/sys"
+ mount -o nocover -t devfs devfs "${_emul_path}/dev"
+ mount -o nocover -t fdescfs fdescfs "${_emul_path}/dev/fd"
+ mount -o nocover,mode=1777 -t tmpfs tmpfs "${_emul_path}/dev/shm"
+ fi
}
load_rc_config $name

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 19, 7:29 PM (21 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27751555
Default Alt Text
D22320.id64210.diff (1 KB)

Event Timeline