mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-10-29 16:21:33 -04: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.
|
## 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user