[lxc-devel] [lxc/stable-2.1] Fix start of sabayon unprivileged containers
geaaru on Github
lxc-bot at linuxcontainers.org
Fri Oct 20 07:20:39 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 387 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171020/c5bd333a/attachment.bin>
-------------- next part --------------
From f1a4d47ba886c8b4fdff81f113ec679888aa7c7d Mon Sep 17 00:00:00 2001
From: Geaaru <geaaru at gmail.com>
Date: Fri, 20 Oct 2017 09:15:18 +0200
Subject: [PATCH] Fix start of unprivileged for image with systemd >=233 and
fix mirrors list
---
templates/lxc-sabayon.in | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/templates/lxc-sabayon.in b/templates/lxc-sabayon.in
index 75e5c765e..fb9e62f58 100644
--- a/templates/lxc-sabayon.in
+++ b/templates/lxc-sabayon.in
@@ -39,13 +39,11 @@ readonly LXC_TEMPLATE_CONFIG='@LXCTEMPLATECONFIG@'
readonly MIRRORS_LIST="
http://mirror.it.sabayon.org/
http://dl.sabayon.org/
-http://ftp.kddilabs.jp/Linux/packages/sabayonlinux/
ftp://ftp.klid.dk/sabayonlinux/
http://ftp.fsn.hu/pub/linux/distributions/sabayon/
http://ftp.cc.uoc.gr/mirrors/linux/SabayonLinux/
http://ftp.rnl.ist.utl.pt/pub/sabayon/
ftp://ftp.nluug.nl/pub/os/Linux/distr/sabayonlinux/
-http://ftp.surfnet.nl/pub/os/Linux/distr/sabayonlinux/
http://mirror.internode.on.net/pub/sabayon/
http://mirror.yandex.ru/sabayon/
http://sabayon.c3sl.ufpr.br/
@@ -295,6 +293,11 @@ lxc.idmap = g 0 ${mapped_gid} 65536
unprivileged_options="
$unprivileged_options
+# Force use of cgroup v1. Currently systemd doesn't support
+# correctly cgroup v2. See: https://github.com/lxc/lxc/issues/1669
+# about discussion of default-hierarchy option.
+lxc.init.cmd = /sbin/init systemd.legacy_systemd_cgroup_controller=yes
+
# Include common configuration.
lxc.include = $LXC_TEMPLATE_CONFIG/sabayon.userns.conf
"
More information about the lxc-devel
mailing list