Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110751342
D22320.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22320.diff
View Options
Index: head/libexec/rc/rc.conf
===================================================================
--- head/libexec/rc/rc.conf
+++ head/libexec/rc/rc.conf
@@ -640,6 +640,8 @@
# 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_mounts_enable="YES" # If linux_enable is set to YES, 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: head/libexec/rc/rc.d/linux
===================================================================
--- head/libexec/rc/rc.d/linux
+++ head/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_mounts_enable; 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
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 23, 3:32 PM (12 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16801528
Default Alt Text
D22320.diff (1 KB)
Attached To
Mode
D22320: Add linux_skip_mounts
Attached
Detach File
Event Timeline
Log In to Comment