]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-debian: fix regression when creating wheezy containers 1064/head
authorAntonio Terceiro <terceiro@debian.org>
Wed, 29 Jun 2016 17:58:35 +0000 (14:58 -0300)
committerAntonio Terceiro <terceiro@debian.org>
Wed, 29 Jun 2016 18:04:57 +0000 (15:04 -0300)
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 f8bf12845f84bda56d9119560d640c9e426c974d..62a0c8506b61145938114320d9ab255d35a9d46c 100644 (file)
@@ -296,8 +296,16 @@ cleanup()
 
 download_debian()
 {
+    case "$release" in
+      wheezy)
+        init=sysvinit
+        ;;
+      *)
+        init=init
+        ;;
+    esac
     packages=\
-init,\
+$init,\
 ifupdown,\
 locales,\
 libui-dialog-perl,\