Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 387355
Collapse All | Expand All

(-)/etc/init.d/procfs (-13 / +13 lines)
Lines 37-60 Link Here
37
		fi
37
		fi
38
	fi
38
	fi
39
39
40
	# Setup Kernel Support for the NFS daemon status
41
	if [ -d /proc/fs/nfsd ] && ! mountinfo -q /proc/fs/nfsd; then
42
		if grep -qs nfsd /proc/filesystems; then
43
			ebegin "Mounting NFS filesystem"
44
			mount -t nfsd -o nodev,noexec,nosuid \
45
				nfsd /proc/fs/nfsd
46
			eend $?
47
		fi
48
	fi
49
50
	# Setup Kernel Support for miscellaneous Binary Formats
40
	# Setup Kernel Support for miscellaneous Binary Formats
51
	if [ -d /proc/sys/fs/binfmt_misc ] \
41
	if [ -d /proc/sys/fs/binfmt_misc -a ! -e /proc/sys/fs/binfmt_misc/register ]; then
52
		&& ! mountinfo -q /proc/sys/fs/binfmt_misc; then
53
		if grep -qs binfmt_misc /proc/filesystems; then
42
		if grep -qs binfmt_misc /proc/filesystems; then
54
			ebegin "Mounting misc binary format filesystem"
43
			ebegin "Mounting misc binary format filesystem"
55
			mount -t binfmt_misc -o nodev,noexec,nosuid \
44
			mount -t binfmt_misc -o nodev,noexec,nosuid \
56
				binfmt_misc /proc/sys/fs/binfmt_misc
45
				binfmt_misc /proc/sys/fs/binfmt_misc
57
			eend $?
46
			if eend $? ; then
47
				local fmts
48
				ebegin "Loading custom binary format handlers"
49
				fmts=$(grep -hsv -e '^[#;]' -e '^[[:space:]]*$' \
50
					/run/binfmt.d/*.conf \
51
					"/etc"/binfmt.d/*.conf \
52
					""/usr/lib/binfmt.d/*.conf)
53
				if [ -n "${fmts}" ]; then
54
					echo "${fmts}" > /proc/sys/fs/binfmt_misc/register
55
				fi
56
				eend $?
57
			fi
58
		fi
58
		fi
59
	fi
59
	fi
60
60

Return to bug 387355