Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/installer.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 9d89c375..c02d5717 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -109,7 +109,9 @@ class Installer:
self.post_base_install = []
+ # TODO: Figure out which one of these two we'll use.. But currently we're mixing them..
storage['session'] = self
+ storage['installation_session'] = self
self.MODULES = []
self.BINARIES = []
@@ -782,13 +784,18 @@ class Installer:
handled_by_plugin = False
for plugin in plugins.values():
if hasattr(plugin, 'on_user_create'):
- if result := plugin.on_user_create(user):
+ if result := plugin.on_user_create(self, user):
handled_by_plugin = result
if not handled_by_plugin:
self.log(f'Creating user {user}', level=logging.INFO)
SysCommand(f'/usr/bin/arch-chroot {self.target} useradd -m -G wheel {user}')
+ for plugin in plugins.values():
+ if hasattr(plugin, 'on_user_created'):
+ if result := plugin.on_user_created(self, user):
+ handled_by_plugin = result
+
if password:
self.user_set_pw(user, password)