Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- rc.S.orig 2015-08-07 01:24:14.000000000 +0200
- +++ rc.S 2015-09-23 09:44:44.616457549 +0200
- @@ -48,31 +48,6 @@
- fi
- fi
- -# Mount Control Groups filesystem interface:
- -if grep -wq cgroup /proc/filesystems ; then
- - if [ -d /sys/fs/cgroup ]; then
- - # See linux-*/Documentation/cgroups/cgroups.txt (section 1.6)
- - # Check if we have some tools to autodetect the available cgroup controllers
- - if [ -x /usr/bin/lssubsys -a -x /usr/bin/tr -a -x /usr/bin/sed ]; then
- - # Mount a tmpfs as the cgroup filesystem root
- - mount -t tmpfs -o mode=0755 cgroup_root /sys/fs/cgroup
- - # Autodetect available controllers and mount them in subfolders
- - controllers="$(lssubsys -a 2>/dev/null | tr '\n' ' ' | sed s/.$//)"
- - for i in $controllers; do
- - mkdir /sys/fs/cgroup/$i
- - mount -t cgroup -o $i $i /sys/fs/cgroup/$i
- - done
- - unset i controllers
- - else
- - # We can't use autodetection so fall back mounting them all together
- - mount -t cgroup cgroup /sys/fs/cgroup
- - fi
- - else
- - mkdir -p /dev/cgroup
- - mount -t cgroup cgroup /dev/cgroup
- - fi
- -fi
- -
- # Initialize the Logical Volume Manager.
- # This won't start unless we find /etc/lvmtab (LVM1) or
- # /etc/lvm/backup/ (LVM2). This is created by /sbin/vgscan, so to
- @@ -308,6 +283,35 @@
- /sbin/mount -f sysfs /sys -t sysfs
- fi
- +# Mount Control Groups filesystem interface:
- +if grep -wq cgroup /proc/filesystems ; then
- + if [ -d /sys/fs/cgroup ]; then
- + # See linux-*/Documentation/cgroups/cgroups.txt (section 1.6)
- + # Check if we have some tools to autodetect the available cgroup controllers
- + if [ -x /usr/bin/lssubsys -a -x /usr/bin/tr -a -x /usr/bin/sed ]; then
- + # Mount a tmpfs as the cgroup filesystem root
- + mount -t tmpfs -o mode=0755 cgroup_root /sys/fs/cgroup
- + # Autodetect available controllers and mount them in subfolders
- + controllers="$(lssubsys -a 2>/dev/null | tr '\n' ' ' | sed s/.$//)"
- + for i in $controllers; do
- + mkdir /sys/fs/cgroup/$i
- + mount -t cgroup -o $i $i /sys/fs/cgroup/$i
- + done
- + unset i controllers
- + else
- + # We can't use autodetection so fall back mounting them all together
- + mount -t cgroup cgroup /sys/fs/cgroup
- + fi
- + # Start cgmanager
- + if [ -x /etc/rc.d/rc.cgmanager ]; then
- + . /etc/rc.d/rc.cgmanager start
- + fi
- + else
- + mkdir -p /dev/cgroup
- + mount -t cgroup cgroup /dev/cgroup
- + fi
- +fi
- +
- # Configure ISA Plug-and-Play devices:
- if [ -r /etc/isapnp.conf ]; then
- if [ -x /sbin/isapnp ]; then
- --- rc.6.orig 2015-03-09 20:17:49.000000000 +0100
- +++ rc.6 2015-09-23 10:25:11.817113365 +0200
- @@ -224,6 +224,11 @@
- /sbin/swapoff -a
- /bin/sync
- +# Stop cgmanager
- +if [ -x /etc/rc.d/rc.cgmanager ]; then
- + . /etc/rc.d/rc.cgmanager stop
- +fi
- +
- echo "Unmounting local file systems:"
- /bin/umount -v -a -t no,proc,sysfs | tr -d ' ' | grep successfully | sed "s/:successfullyunmounted/ has been successfully unmounted./g" 2> /dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement