From dce989e96df05c0777e407b7d2cbd1c67a67f630 Mon Sep 17 00:00:00 2001 From: Alexander V Vershilov Date: Sat, 25 May 2013 17:37:56 +0400 Subject: cgroups: hide messages about non-existent processes --- sh/rc-cgroup.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/rc-cgroup.sh.in b/sh/rc-cgroup.sh.in index 81fc7d86..d96aa164 100644 --- a/sh/rc-cgroup.sh.in +++ b/sh/rc-cgroup.sh.in @@ -115,7 +115,7 @@ cgroup_cleanup() cgroup_get_pids || { eend 0 "finished" ; return 0 ; } sleep 1 done - done + done 2>/dev/null done cgroup_get_pids || { eend 0 "finished" ; return 0; } kill -9 $pids -- cgit v1.2.3 From 9f14fd7ae10d8ae724045a57a2eb25c1d4290a3b Mon Sep 17 00:00:00 2001 From: Alexander V Vershilov Date: Sun, 2 Jun 2013 22:49:19 +0400 Subject: Fix quoting in cgroup-release-agent --- sh/cgroup-release-agent.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/cgroup-release-agent.sh.in b/sh/cgroup-release-agent.sh.in index c3174fee..d6dd1e1e 100644 --- a/sh/cgroup-release-agent.sh.in +++ b/sh/cgroup-release-agent.sh.in @@ -5,6 +5,6 @@ cgroup=/sys/fs/cgroup/openrc PATH=/bin:/usr/bin:/sbin:/usr/sbin -if [ -d ${cgroup}/$1 ]; then - rmdir ${cgroup}/$1 +if [ -d ${cgroup}/"$1" ]; then + rmdir ${cgroup}/"$1" fi -- cgit v1.2.3 From 02a7d3573d551c5d169eaa465ef90349d1ee367e Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 24 Jun 2013 19:31:58 +0000 Subject: efivarfs: Support EFI variable access in 3.10 kernels. In the 3.10 kernel, EFI variables are now provided by a dedicated filesystem that needs to be mounted. Signed-off-by: Robin H. Johnson --- init.d/sysfs.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 114a6530..7658cb5f 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -81,6 +81,20 @@ mount_misc() eend $? fi fi + + # setup up kernel support for efivarfs + # slightly complicated, as if it's build as a module but NOT yet loaded, + # it will NOT appear in /proc/filesystems yet + if [ -d /sys/firmware/efi/efivars ] \ + && ! mountinfo -q /sys/firmware/efi/efivars; then + modprobe -q efivarfs + if grep -qs efivarfs /proc/filesystems; then + ebegin "Mounting efivarfs filesystem" + mount -n -t efivarfs -o ${sysfs_opts} \ + efivarfs /sys/firmware/efi/efivars + eend $? + fi + fi } mount_cgroups() -- cgit v1.2.3