The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxcfs/pull/195

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
otherwise init might try to start lxcfs before cgroupfs was mounted,
which will result in an empty /var/lib/lxcfs/cgroup and weird issues.

Debian-Bug: https://bugs.debian.org/859219
Signed-off-by: Evgeni Golov <[email protected]>
From 67b8232d637a867e3b928f7344814e7666b98c22 Mon Sep 17 00:00:00 2001
From: Evgeni Golov <[email protected]>
Date: Thu, 22 Jun 2017 08:22:07 +0200
Subject: [PATCH] add cgroupfs-mount to Should-Start/Stop sysvinit LSB headers

otherwise init might try to start lxcfs before cgroupfs was mounted,
which will result in an empty /var/lib/lxcfs/cgroup and weird issues.

Debian-Bug: https://bugs.debian.org/859219
Signed-off-by: Evgeni Golov <[email protected]>
---
 config/init/sysvinit/lxcfs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config/init/sysvinit/lxcfs b/config/init/sysvinit/lxcfs
index 21a9c61..bdbcb34 100755
--- a/config/init/sysvinit/lxcfs
+++ b/config/init/sysvinit/lxcfs
@@ -6,6 +6,8 @@
 # Provides:             lxcfs
 # Required-Start:       $remote_fs
 # Required-Stop:        $remote_fs
+# Should-Start:         cgroupfs-mount
+# Should-Stop:          cgroupfs-mount
 # Default-Start:        2 3 4 5
 # Default-Stop:         0 1 6
 ### END INIT INFO
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to