diff options
Diffstat (limited to 'kvmx-create')
-rwxr-xr-x | kvmx-create | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmx-create b/kvmx-create index 76f2eb4..81d6be1 100755 --- a/kvmx-create +++ b/kvmx-create @@ -395,7 +395,7 @@ function __kvmx_create_custom_second_stage { # See #799253 - virtio ens3 network interface # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799253 for net_dev in eth0 ens3 ens4; do - cat <<-EOF | $SUDO tee $WORK/etc/network/interfaces.d/eth0 > /dev/null + cat <<-EOF | $SUDO tee $WORK/etc/network/interfaces.d/$net_dev > /dev/null auto $net_dev iface $net_dev inet static address $net_ip @@ -408,7 +408,7 @@ EOF # See #799253 - virtio ens3 network interface # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799253 for net_dev in eth0 ens3 ens4; do - cat <<-EOF | $SUDO tee $WORK/etc/network/interfaces.d/eth0 > /dev/null + cat <<-EOF | $SUDO tee $WORK/etc/network/interfaces.d/$net_dev > /dev/null allow-hotplug $net_dev iface $net_dev inet dhcp EOF |