From: Antonio Terceiro Date: Wed, 29 Jun 2016 17:58:35 +0000 (-0300) Subject: lxc-debian: fix regression when creating wheezy containers X-Git-Tag: lxc-1.0.9~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f72ca8576d78038a8bd715dea075802e5b8f14e;p=thirdparty%2Flxc.git 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 --- diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index fe33b0b4c..ad693b570 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -221,8 +221,16 @@ cleanup() download_debian() { + case "$release" in + wheezy) + init=sysvinit + ;; + *) + init=init + ;; + esac packages=\ -init,\ +$init,\ ifupdown,\ locales,\ libui-dialog-perl,\