From: S.Çağlar Onur Date: Sat, 9 Aug 2014 03:13:27 +0000 (-0400) Subject: introduce --with-distro=raspbian X-Git-Tag: lxc-1.0.6~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=590ff60c48383b02ed44d35cabd82d74d9850e64;p=thirdparty%2Flxc.git introduce --with-distro=raspbian 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 Acked-by: Serge E. Hallyn --- diff --git a/configure.ac b/configure.ac index 3555f1131..e95133897 100644 --- a/configure.ac +++ b/configure.ac @@ -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)