From b1da4dcb9913d6d28fa39c60dcf9c867c39486ef Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Wed, 26 Oct 2011 01:05:00 +0400 Subject: Add support for automounting configfs and cgroupfs Signed-off-by: Alexey Shvetsov --- init.d/sysfs.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index ba25090a..257f3148 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -50,6 +50,26 @@ mount_misc() eend $? fi fi + + # Setup Kernel Support for configfs + if [ -d /sys/kernel/config ] && ! mountinfo -q /sys/kernel/config; then + if grep -qs configfs /proc/filesystems; then + ebegin "Mounting config filesystem" + mount -n -t configfs -o nodev,noexec,nosuid \ + configfs /sys/kernel/config + eend $? + fi + fi + + # Setup Kernel Support for cgroup + if [ -d /sys/fs/cgroup ] && ! mountinfo -q /sys/fs/cgroup; then + if grep -qs cgroup /proc/filesystems; then + ebegin "Mounting cgroup filesystem" + mount -n -t cgroup -o nodev,noexec,nosuid \ + cgroup /sys/fs/cgroup + eend $? + fi + fi } start() -- cgit v1.2.3