mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-23 01:51:33 -05:00
Fix resolv.conf
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
32ee17b742
commit
7f99bd5bed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user