1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-24 02:21:34 -05:00

Only configure systemd-resolved on desktop

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

View File

@ -570,10 +570,6 @@ EOF
## Give wheel user sudo access. ## Give wheel user sudo access.
sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/g' /mnt/etc/sudoers 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 ## Enable services
systemctl enable apparmor --root=/mnt systemctl enable apparmor --root=/mnt
systemctl enable chronyd --root=/mnt systemctl enable chronyd --root=/mnt
@ -594,6 +590,8 @@ fi
if [ "${install_mode}" = 'desktop' ]; then if [ "${install_mode}" = 'desktop' ]; then
systemctl enable gdm --root=/mnt 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 systemctl enable systemd-resolved --root=/mnt
fi fi