Apply static network configuration

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-12-17 12:56:26 +01:00
parent cd78183636
commit d4f01e67b0
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -101,6 +101,9 @@ chroot_commands:
- 'rc-update add local' - 'rc-update add local'
# Enable private interface # 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'
... ...