lxc-enter-namespace is broken for me right now
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 10 Apr 2015 08:30:25 +0000 (10:30 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 10 Apr 2015 08:30:25 +0000 (10:30 +0200)
it is unclear why this is necessary anyway, so let us try without the explicit dhclient thing

lbuild-initvm.sh

index 869bf76..c42efcf 100755 (executable)
@@ -657,7 +657,7 @@ function post_install () {
            # we need the --noseclabel flag with recent libvirt's
            # was not required with f20/libvirt-1.2.5
            # but is now with f21/libvirt-1.2.9
-            virsh -c lxc:/// lxc-enter-namespace --noseclabel $lxc /usr/bin/$personality /bin/bash -c "dhclient $VIF_GUEST"
+            virsh -c lxc:/// lxc-enter-namespace --noseclabel $lxc /usr/bin/$personality /bin/bash -c "dhclient $VIF_GUEST" || :
        fi
     else
        post_install_myplc $lxc $personality