Commit db3c8336 by Dimitri John Ledkov Committed by Christian Brauner

Check that there is netplan binary, rather than just just a config directory.

parent 649f249c
...@@ -92,7 +92,7 @@ configure_ubuntu() ...@@ -92,7 +92,7 @@ configure_ubuntu()
password=$5 password=$5
# configure the network using the dhcp # configure the network using the dhcp
if [ -d $rootfs/etc/netplan ]; then if chroot $rootfs which netplan >/dev/null 2>&1; then
cat <<EOF > $rootfs/etc/netplan/10-lxc.yaml cat <<EOF > $rootfs/etc/netplan/10-lxc.yaml
network: network:
ethernets: ethernets:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment