]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
introduce --with-distro=raspbian
authorS.Çağlar Onur <caglar@10ur.org>
Sat, 9 Aug 2014 03:13:27 +0000 (23:13 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Sat, 16 Aug 2014 01:46:34 +0000 (21:46 -0400)
Raspberry Pi kernel finally supports all the bits required by LXC [1]

This patch makes "./configure --with-distro=raspbian" to install lxcbr0
based config file and upstart jobs.
Also src/lxc/lxc.net now checks the existence of the lxc-dnsmasq user
(and fallbacks to dnsmasq)

RPI users still need to pass
"MIRROR=http://archive.raspbian.org/raspbian/" parameter to lxc-create
to pick the correct packages

MIRROR=http://archive.raspbian.org/raspbian/ lxc-create -t debian -n rpi

[1] https://github.com/raspberrypi/linux/issues/176

stable-1.0: Cherry-picked from master minus the lxc-net change as
lxc-net isn't available in LXC 1.0.x. Instead it is assumed that the
distribution will take care of setting up the network (lxcbr0 in this
case).

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
configure.ac

index 3555f1131ad34e44e8e861f2d6da44194cebde63..e9513389757f17718a42de7c0c0eb27b3d2fbcef 100644 (file)
@@ -59,7 +59,7 @@ if test "z$with_distro" = "z"; then
        with_distro="unknown"
 fi
 case $with_distro in
-       ubuntu)
+       ubuntu|raspbian)
                distroconf=default.conf.ubuntu
                ;;
        redhat|centos|fedora|oracle|oracleserver)
@@ -70,7 +70,7 @@ case $with_distro in
                ;;
 esac
 AC_MSG_RESULT([$with_distro])
-AM_CONDITIONAL([HAVE_DEBIAN], [test x"$with_distro" = "xdebian" -o x"$with_distro" = "xubuntu"])
+AM_CONDITIONAL([HAVE_DEBIAN], [test x"$with_distro" = "xdebian" -o x"$with_distro" = "xubuntu" -o x"$with_distro" = "xraspbian"])
 AM_CONDITIONAL([DISTRO_UBUNTU], [test "x$with_distro" = "xubuntu"])
 
 # Check for init system type
@@ -88,7 +88,7 @@ case "$with_init_script" in
                        redhat|centos|oracle|oracleserver)
                                init_script=sysvinit
                                ;;
-                       debian)
+                       debian|raspbian)
                                init_script=upstart,systemd
                                ;;
                        ubuntu)