Skip to content

Commit

Permalink
Check that there is netplan binary, rather than just just a config di…
Browse files Browse the repository at this point in the history
…rectory.

Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
xnox authored and Christian Brauner committed Sep 1, 2017
1 parent 649f249 commit db3c833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/lxc-ubuntu.in
Expand Up @@ -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 <<EOF > $rootfs/etc/netplan/10-lxc.yaml
network:
ethernets:
Expand Down

0 comments on commit db3c833

Please sign in to comment.