]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
ubuntu: iproute is now called iproute2
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 3 Sep 2013 15:36:09 +0000 (11:36 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 3 Sep 2013 15:36:09 +0000 (11:36 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-ubuntu.in

index 4fd2cba7909db34040ee556fc9b7332ded7ae688..6f6f3e131a4e0ac7fa50352be9cbcf73bdb8a699 100644 (file)
@@ -577,8 +577,14 @@ post_process()
         write_sourceslist $rootfs $hostarch "multiarch"
 
         # Finally update the lists and install upstart using the host architecture
+        HOST_PACKAGES="upstart:${hostarch} mountall:${hostarch} isc-dhcp-client:${hostarch}"
         chroot $rootfs apt-get update
-        chroot $rootfs apt-get install --force-yes -y --no-install-recommends upstart:${hostarch} mountall:${hostarch} iproute:${hostarch} isc-dhcp-client:${hostarch}
+        if chroot $rootfs dpkg -l iproute2 | grep -q ^ii; then
+            HOST_PACKAGES="$HOST_PACKAGES iproute2:${hostarch}"
+        else
+            HOST_PACKAGES="$HOST_PACKAGES iproute:${hostarch}"
+        fi
+        chroot $rootfs apt-get install --force-yes -y --no-install-recommends $HOST_PACKAGES
     fi
 
     # rmdir /dev/shm for containers that have /run/shm