aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-14 01:25:15 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-14 01:25:15 -0300
commit67648f1f55120b6c6ee2166e1b0d3a465f136b20 (patch)
treedd82f7c850db2a1cef56a625501a8293a78584d1 /kvmx-create
parentcd2f289ea85183786601c1eef6ff7e1cc2f9a8e2 (diff)
downloadkvmx-67648f1f55120b6c6ee2166e1b0d3a465f136b20.tar.gz
kvmx-67648f1f55120b6c6ee2166e1b0d3a465f136b20.tar.bz2
Fix net_dev at kvmx-create
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create4
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