From ea113dd7c941b010e20ffda8ea0e5a5bc90883d3 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Fri, 7 Jul 2023 08:10:08 +0200 Subject: [PATCH] postinst: Add iproute and set up DNS Without these the VMs are almost unusable. --- alpine_postinst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/alpine_postinst b/alpine_postinst index 0c9f752..e751af4 100644 --- a/alpine_postinst +++ b/alpine_postinst @@ -9,9 +9,13 @@ echo "$ssh_key" >> /root/.ssh/authorized_keys # Install bird and maybe other tools apk update -apk add bird +apk add bird iproute2 rc-update add bird default +# DNS setup +echo "nameserver 1.1.1.1" > /etc/resolv.conf +echo "nameserver 2620:fe::fe" >> /etc/resolv.conf + # Run nameif at boot to set network names # Doc: https://wiki.alpinelinux.org/wiki/Custom_network_interface_names # NOTE: This does not seem to work.