From db3c8336ac89a0c7a1ea29c613c58dd91220e4e3 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Thu, 31 Aug 2017 12:40:58 +0100 Subject: [PATCH] Check that there is netplan binary, rather than just just a config directory. Signed-off-by: Dimitri John Ledkov Signed-off-by: Christian Brauner --- templates/lxc-ubuntu.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index ec41fcd2a..80a28fd2a 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -92,7 +92,7 @@ configure_ubuntu() password=$5 # configure the network using the dhcp - if [ -d $rootfs/etc/netplan ]; then + if chroot $rootfs which netplan >/dev/null 2>&1; then cat < $rootfs/etc/netplan/10-lxc.yaml network: ethernets: