From d4f01e67b007585d49fdc6de567901811969375b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 17 Dec 2022 12:56:26 +0100 Subject: [PATCH] Apply static network configuration Signed-off-by: Knut Ahlers --- config.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index b2d3d3f..5675804 100644 --- a/config.yaml +++ b/config.yaml @@ -101,6 +101,9 @@ chroot_commands: - 'rc-update add local' # Enable private interface - - 'echo -e "\n\nauto eth1\niface eth1 inet dhcp" >>/etc/network/interfaces' + - 'echo "network: {config: disabled}" >/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg' + - 'echo -e "auto lo\niface lo inet loopback\n" >/etc/network/interfaces' + - 'echo -e "auto eth0\niface eth0 inet dhcp\niface eth0 inet6 auto\n" >>/etc/network/interfaces' + - 'echo -e "auto eth1\niface eth1 inet dhcp\niface eth1 inet6 auto\n" >>/etc/network/interfaces' ...