mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-10 15:23:06 +00:00
Check that there is netplan binary, rather than just just a config directory.
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com> Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
649f249cd0
commit
db3c8336ac
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user