Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-01-26 00:11:17 +0100
committerAnton Hvornum <anton@hvornum.se>2021-01-26 00:11:17 +0100
commita3d9ad9f3f48c9bd06edb6c1ec58b55ac4bb6741 (patch)
tree0b3b1dfb0bdc8e416d2777419c7401f328c9dc76 /archinstall
parent405794d53f1f47e2a19a906dbdfa6ad39ea79c17 (diff)
Corrected a error in the installation of iwd. The package was added to base_packages, which is never installed if the installer has already finished installing the base packages before this function was called. copy_ISO_network_config() there for now properly checks if the installation is complete and if so, simply straps in the package. Otherwise adds it to the base packages and waits for the base to roll through.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py26
1 files changed, 15 insertions, 11 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index c8cf40d0..e1a37f32 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -190,20 +190,24 @@ class Installer():
if not os.path.isdir(f"{self.mountpoint}/var/lib/iwd"):
os.makedirs(f"{self.mountpoint}/var/lib/iwd")
- self.base_packages.append('iwd')
-
- if enable_services and self.helper_flags.get('base', False) is False:
- # This function will be called after minimal_installation()
- # as a hook for post-installs. This hook is only needed if
- # base is not installed yet.
- def post_install_enable_iwd_service(*args, **kwargs):
+ if enable_services:
+ # If we haven't installed the base yet (function called pre-maturely)
+ if self.helper_flags.get('base', False) is False:
+ self.base_packages.append('iwd')
+ # This function will be called after minimal_installation()
+ # as a hook for post-installs. This hook is only needed if
+ # base is not installed yet.
+ def post_install_enable_iwd_service(*args, **kwargs):
+ self.enable_service('iwd')
+
+ self.post_base_install.append(post_install_enable_iwd_service)
+ # Otherwise, we can go ahead and add the required package
+ # and enable it's service:
+ else:
+ self.pacstrap(self.base_packages)
self.enable_service('iwd')
- self.post_base_install.append(post_install_enable_iwd_service)
- elif enable_services and self.helper_flags.get('base', False) is True:
- self.enable_service('iwd')
-
for psk in psk_files:
shutil.copy2(psk, f"{self.mountpoint}/var/lib/iwd/{os.path.basename(psk)}")