From f95776dffa5e1a566a69726345d17d322e51ebc0 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 29 Jun 2016 14:58:35 -0300 Subject: [PATCH] lxc-debian: fix regression when creating wheezy containers The regression was introduced by commit 3c39b0b7a2b445e08d2e2aecb05566075f4f3423 which makes it possible to create working stretch containers by forcinig `init` to be in the included package list. However, `init` didn't exit before jessie, so now for wheezy we explicitly include `sysvinit`; sysvinit on wheezy is essential, so it would already be included anyway. Signed-off-by: Antonio Terceiro --- templates/lxc-debian.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index f8bf12845..62a0c8506 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -296,8 +296,16 @@ cleanup() download_debian() { + case "$release" in + wheezy) + init=sysvinit + ;; + *) + init=init + ;; + esac packages=\ -init,\ +$init,\ ifupdown,\ locales,\ libui-dialog-perl,\