mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-21 00:51:34 -05:00
Only configure systemd-resolved on desktop
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
7f99bd5bed
commit
3948fbd19c
@ -570,10 +570,6 @@ 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
|
||||
@ -594,6 +590,8 @@ fi
|
||||
|
||||
if [ "${install_mode}" = 'desktop' ]; then
|
||||
systemctl enable gdm --root=/mnt
|
||||
rm /mnt/etc/resolv.conf
|
||||
ln -s /run/systemd/resolve/stub-resolv.conf /mnt/etc/resolv.conf
|
||||
systemctl enable systemd-resolved --root=/mnt
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user