Tue, 3 Feb 2015 07:33:34 -0600
On Sun, 01 Feb 2015 15:36:33 +0100
Oliver Welter <mail@oliwel.de> wrote:
> Hi Bertl,
>
> with the 3.18 patch I dont have a node /proc/sys/kernel/vshelper and the
> vserver scripts complain about that.
see attached patch.
thanks to AlexanderS on irc for his comment that tipped me off to where the
problem was (which was probably a bit faster than grepping for vshelper).
haven't run-time tested it (been busy debugging why lxc-start mounts
filesystems in a container on a non-vserver kernel but not on a vserver
kernel, though root can do it without problem within the container), but it
compiles.
corey
--
undefined@pobox.com
> There is I good chance that I missed something during setting up the
> test system, any ideas? If that matters - I used 3.18.5 instead of
> 3.18.4 as base.
>
> Oli
> --
> Protect your environment - close windows and adopt a penguin!
diff -urNpd linux-3.18.5-vs2.3.7.1.orig/kernel/sysctl.c linux-3.18.5-vs2.3.7.1/kernel/sysctl.c
--- linux-3.18.5-vs2.3.7.1.orig/kernel/sysctl.c 2015-01-30 13:33:10.000000000 -0600
+++ linux-3.18.5-vs2.3.7.1/kernel/sysctl.c 2015-02-02 19:33:07.000000000 -0600
@@ -1301,6 +1301,8 @@ static struct ctl_table vm_table[] = {
.extra1 = &min_extfrag_threshold,
.extra2 = &max_extfrag_threshold,
},
+
+#endif /* CONFIG_COMPACTION */
{
.procname = "vshelper",
.data = &vshelper_path,
@@ -1308,8 +1310,6 @@ static struct ctl_table vm_table[] = {
.mode = 0644,
.proc_handler = &proc_dostring,
},
-
-#endif /* CONFIG_COMPACTION */
{
.procname = "min_free_kbytes",
.data = &min_free_kbytes,