summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNik Lutz <nik@netstyle.ch>2016-04-19 12:46:38 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-05-18 18:26:06 +0000
commit35b35a5ad58d9496f57e638bd69c0de2f65d102b (patch)
tree68d1cd301cdf615abc9c661494626077571e5092
parentRemoving network interface configuration in /etc/network/interfaces.d after c... (diff)
downloadcompute-tools-35b35a5ad58d9496f57e638bd69c0de2f65d102b.tar.xz
compute-tools-35b35a5ad58d9496f57e638bd69c0de2f65d102b.zip
Using eth[0-9] instead of host[0-9] in containers /etc/network/interface.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xshare/scripts/debconf10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/scripts/debconf b/share/scripts/debconf
index 24202b0..bbdd65c 100755
--- a/share/scripts/debconf
+++ b/share/scripts/debconf
@@ -749,7 +749,7 @@ EOF
none)
cat >> "${DIRECTORY}/etc/network/interfaces.tmp" << EOF
-iface host${NUMBER} inet manual
+iface eth${NUMBER} inet manual
EOF
;;
@@ -757,8 +757,8 @@ EOF
dhcp)
cat >> "${DIRECTORY}/etc/network/interfaces.tmp" << EOF
-auto host${NUMBER}
-iface host${NUMBER} inet dhcp
+auto eth${NUMBER}
+iface eth${NUMBER} inet dhcp
EOF
;;
@@ -766,8 +766,8 @@ EOF
static)
cat >> "${DIRECTORY}/etc/network/interfaces.tmp" << EOF
-auto host${NUMBER}
-iface host${NUMBER} inet static
+auto eth${NUMBER}
+iface eth${NUMBER} inet static
address ${IPV4_ADDRESS}
EOF