Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/profiles.py')
-rw-r--r--archinstall/lib/profiles.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index a85e4f6e..0d1c78ee 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -66,11 +66,12 @@ def list_profiles(filter_irrelevant_macs=True):
return cache
class Script():
- def __init__(self, profile):
+ def __init__(self, profile, installer=None):
# profile: https://hvornum.se/something.py
# profile: desktop
# profile: /path/to/profile.py
self.profile = profile
+ self.installer = installer
self.converted_path = None
self.namespace = os.path.splitext(os.path.basename(self.path))[0]
@@ -132,8 +133,7 @@ class Script():
class Profile(Script):
def __init__(self, installer, path, args={}):
- super(Profile, self).__init__(path)
- self.installer = installer
+ super(Profile, self).__init__(path, installer)
self._cache = None
def __dump__(self, *args, **kwargs):