Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 301975 Details for
Bug 401875
sys-apps/openrc enable binfmt_misc procfs support for OpenVZ
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
binfmt-openvz.patch
binfmt-openvz.patch (text/plain), 1.92 KB, created by
William Hubbs
on 2012-02-14 22:59:42 UTC
(
hide
)
Description:
binfmt-openvz.patch
Filename:
MIME Type:
Creator:
William Hubbs
Created:
2012-02-14 22:59:42 UTC
Size:
1.92 KB
patch
obsolete
>diff --git a/init.d/procfs.in b/init.d/procfs.in >index 8167ff9..05ed0c2 100644 >--- a/init.d/procfs.in >+++ b/init.d/procfs.in >@@ -8,7 +8,7 @@ depend() > { > use modules devfs > need localmount >- keyword -openvz -prefix -vserver -lxc >+ keyword -prefix -vserver -lxc > } > > start() >@@ -20,23 +20,6 @@ start() > > [ -e /proc/filesystems ] || return 0 > >- # Check what USB fs the kernel support. Currently >- # 2.5+ kernels, and later 2.4 kernels have 'usbfs', >- # while older kernels have 'usbdevfs'. >- if [ -d /proc/bus/usb -a ! -e /proc/bus/usb/devices ]; then >- local usbfs=$(grep -Fow usbfs /proc/filesystems || >- grep -Fow usbdevfs /proc/filesystems) >- if [ -n "$usbfs" ]; then >- ebegin "Mounting USB device filesystem [$usbfs]" >- local usbgid="$(getent group usb | \ >- sed -e 's/.*:.*:\(.*\):.*/\1/')" >- mount -t $usbfs \ >- -o ${usbgid:+devmode=0664,devgid=$usbgid,}noexec,nosuid \ >- usbfs /proc/bus/usb >- eend $? >- fi >- fi >- > # Setup Kernel Support for miscellaneous Binary Formats > if [ -d /proc/sys/fs/binfmt_misc -a ! -e /proc/sys/fs/binfmt_misc/register ]; then > if grep -qs binfmt_misc /proc/filesystems; then >@@ -58,6 +41,25 @@ start() > fi > fi > >+ [ "$RC_SYS" == "OPENVZ" ] && return 0 >+ >+ # Check what USB fs the kernel support. Currently >+ # 2.5+ kernels, and later 2.4 kernels have 'usbfs', >+ # while older kernels have 'usbdevfs'. >+ if [ -d /proc/bus/usb -a ! -e /proc/bus/usb/devices ]; then >+ local usbfs=$(grep -Fow usbfs /proc/filesystems || >+ grep -Fow usbdevfs /proc/filesystems) >+ if [ -n "$usbfs" ]; then >+ ebegin "Mounting USB device filesystem [$usbfs]" >+ local usbgid="$(getent group usb | \ >+ sed -e 's/.*:.*:\(.*\):.*/\1/')" >+ mount -t $usbfs \ >+ -o ${usbgid:+devmode=0664,devgid=$usbgid,}noexec,nosuid \ >+ usbfs /proc/bus/usb >+ eend $? >+ fi >+ fi >+ > # Setup Kernel Support for SELinux > if [ -d /selinux ] && ! mountinfo -q /selinux; then > if grep -qs selinuxfs /proc/filesystems; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 401875
: 301975