diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-14 01:25:15 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-14 01:25:15 -0300 |
commit | 67648f1f55120b6c6ee2166e1b0d3a465f136b20 (patch) | |
tree | dd82f7c850db2a1cef56a625501a8293a78584d1 | |
parent | cd2f289ea85183786601c1eef6ff7e1cc2f9a8e2 (diff) | |
download | kvmx-67648f1f55120b6c6ee2166e1b0d3a465f136b20.tar.gz kvmx-67648f1f55120b6c6ee2166e1b0d3a465f136b20.tar.bz2 |
Fix net_dev at 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 |