Added enabling of systemd-networkd and systemd-resolvd in the copying of the ISO network configuration.

This commit is contained in:
Anton Hvornum 2021-01-26 00:13:40 +01:00
parent a3d9ad9f3f
commit 5bc878d58c
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 4 additions and 0 deletions

View File

@ -200,6 +200,8 @@ class Installer():
# base is not installed yet.
def post_install_enable_iwd_service(*args, **kwargs):
self.enable_service('iwd')
self.enable_service('systemd-networkd')
self.enable_service('systemd-resolved')
self.post_base_install.append(post_install_enable_iwd_service)
# Otherwise, we can go ahead and add the required package
@ -207,6 +209,8 @@ class Installer():
else:
self.pacstrap(self.base_packages)
self.enable_service('iwd')
self.enable_service('systemd-networkd')
self.enable_service('systemd-resolved')
for psk in psk_files:
shutil.copy2(psk, f"{self.mountpoint}/var/lib/iwd/{os.path.basename(psk)}")