]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-debian: fix regression when creating wheezy containers
authorAntonio Terceiro <terceiro@debian.org>
Wed, 29 Jun 2016 17:58:35 +0000 (14:58 -0300)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:27:55 +0000 (18:27 -0500)
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 <terceiro@debian.org>
templates/lxc-debian.in

index fe33b0b4c4728b14e3cb22f6281d597081177427..ad693b570fe6f27a98ecc6276343943468caa79f 100644 (file)
@@ -221,8 +221,16 @@ cleanup()
 
 download_debian()
 {
+    case "$release" in
+      wheezy)
+        init=sysvinit
+        ;;
+      *)
+        init=init
+        ;;
+    esac
     packages=\
-init,\
+$init,\
 ifupdown,\
 locales,\
 libui-dialog-perl,\