Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-07-08 10:46:52 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-07-08 10:46:52 +0000
commitaecd333ea3020c0c575948763089cc829c36c56d (patch)
treedd126920c2eb75180455a7ec454bf7f711548aa0 /archinstall/lib
parent3ed8db5ef0b065583e35f924f3f9d09290f03a37 (diff)
v2.0.3 prep release. Profile now fully support python scripting instead of JSON. They also support importing archinstall and doing whatever the examples are doing - with one tiiiny TODO/hack/magic, the 'installer' session that is contextulized gets hard-inserted into the globals() scope. Since the child script won't actually have the global instance of the parent, we need to insert it to be known due to the way we import stuff
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/profiles.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index bccdf34d..07bd3fd4 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -88,6 +88,7 @@ class Profile():
def install(self):
instructions = self.load_instructions()
if type(instructions) == Imported:
+ __builtins__['installation'] = self.installer # There's no easy way to give the imported profile the installer instance unless we require the profile-programmer to create a certain function that must be the same for all.. Which is a bit inconvenient so lets just make it truly global
with instructions as runtime:
log(f'Profile {self.name} finished successfully.')
else: