examples/guided: Enable systemd-resolved

If we enable systemd-networkd and do not enable systemd-resolved, the installed system
is left on a state where it has networking, but can resolve any hostnames. It is required
to have systemd-resolved enabled if any .network file has a DNS entry or is using DHCP=yes.

https://wiki.archlinux.org/index.php/Systemd-networkd#Required_services_and_setup
This commit is contained in:
Giancarlo Razzolini 2021-01-21 15:02:33 -03:00
parent 63f04d3110
commit 07ca7f421d
No known key found for this signature in database
GPG Key ID: F22FB1D78A77AEAB
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ def perform_installation(device, boot_partition, language, mirrors):
if archinstall.storage['_guided']['network']:
installation.configure_nic(**archinstall.storage['_guided']['network'])
installation.enable_service('systemd-networkd')
installation.enable_service('systemd-resolved')
if archinstall.storage['_guided']['packages'] and archinstall.storage['_guided']['packages'][0] != '':
installation.add_additional_packages(archinstall.storage['_guided']['packages'])