From dd8b8f1fff8e613e3ac9d7d1ad34539504cef3eb Mon Sep 17 00:00:00 2001 From: Lyanis Souidi Date: Tue, 21 May 2024 10:41:53 +0200 Subject: [PATCH] Fix swap size and add DNS conf --- scripts/sandbox-install | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/sandbox-install b/scripts/sandbox-install index e508663..ac71054 100644 --- a/scripts/sandbox-install +++ b/scripts/sandbox-install @@ -35,7 +35,7 @@ SERVICES=( "fstrim.service" "docker.service" "ovs-vswitchd.service" "marionnet.service" ) -SWAP_SIZE=16G +SWAP_SIZE=16GiB # Enable time synchronization timedatectl set-ntp true @@ -107,6 +107,13 @@ echo "root:root" | chpasswd # Install syslinux syslinux-install_update -iam +# DNS configuration +ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf + +# Disable multicast DNS and LLMNR +sed -i 's/#LLMNR=no/LLMNR=no/g' /etc/systemd/resolved.conf +sed -i 's/#MulticastDNS=no/MulticastDNS=no/g' /etc/systemd/resolved.conf + # Configure the network for DHCP echo "[Match] Name=en*