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: