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"
|
"fstrim.service" "docker.service" "ovs-vswitchd.service" "marionnet.service"
|
||||||
)
|
)
|
||||||
|
|
||||||
SWAP_SIZE=16G
|
SWAP_SIZE=16GiB
|
||||||
|
|
||||||
# Enable time synchronization
|
# Enable time synchronization
|
||||||
timedatectl set-ntp true
|
timedatectl set-ntp true
|
||||||
@ -107,6 +107,13 @@ echo "root:root" | chpasswd
|
|||||||
# Install syslinux
|
# Install syslinux
|
||||||
syslinux-install_update -iam
|
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
|
# Configure the network for DHCP
|
||||||
echo "[Match]
|
echo "[Match]
|
||||||
Name=en*
|
Name=en*
|
||||||
|
Loading…
Reference in New Issue
Block a user