Fix swap size and add DNS conf
This commit is contained in:
parent
be5fc8b22f
commit
dd8b8f1fff
@ -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*
|
||||
|
Loading…
Reference in New Issue
Block a user