1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-12-26 08:41:58 -05:00

Fix resolv.conf

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-10-11 14:42:25 -07:00 committed by GitHub
parent 32ee17b742
commit 7f99bd5bed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -554,10 +554,6 @@ arch-chroot /mnt /bin/bash -e <<EOF
dconf update
fi
# Use systemd-resolved for DNS resolution
rm /etc/resolv.conf
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
# Snapper configuration
umount /.snapshots
rm -r /.snapshots
@ -574,6 +570,10 @@ EOF
## Give wheel user sudo access.
sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/g' /mnt/etc/sudoers
# Use systemd-resolved for DNS resolution
rm /mnt/etc/resolv.conf
ln -s /run/systemd/resolve/stub-resolv.conf /mnt/etc/resolv.conf
## Enable services
systemctl enable apparmor --root=/mnt
systemctl enable chronyd --root=/mnt