Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-14 18:00:27 +0200
committerAnton Hvornum <anton@hvornum.se>2021-05-14 18:00:27 +0200
commit16441f11cb4f8af9a879f85ecaab370a8561dade (patch)
tree023aebcee5724e82380f6b2d636960567a8e1fe6 /archinstall/lib/installer.py
parent33a3f803913eab8f503d6b131d7679fa663acbb2 (diff)
parentda0af2294a36f73936473a138639a94958b06460 (diff)
Merge branch 'master' of github.com:archlinux/archinstall into torxed-kernel-params
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index b9857ccd..2b5f43b1 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -439,7 +439,7 @@ class Installer():
self.pacstrap('grub')
if hasUEFI():
- self.pacstrap('efibootmgr')`
+ self.pacstrap('efibootmgr')
o = b''.join(sys_command(f'/usr/bin/arch-chroot {self.target} grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB'))
sys_command('/usr/bin/arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg')
return True
@@ -458,14 +458,7 @@ class Installer():
return self.pacstrap(*packages)
def install_profile(self, profile):
- # TODO: Replace this with a import archinstall.session instead in the profiles.
- # The tricky thing with doing the import archinstall.session instead is that
- # profiles might be run from a different chroot, and there's no way we can
- # guarantee file-path safety when accessing the installer object that way.
- # Doing the __builtins__ replacement, ensures that the global variable "installation"
- # is always kept up to date. It's considered a nasty hack - but it's a safe way
- # of ensuring 100% accuracy of archinstall session variables.
- __builtins__['installation'] = self
+ storage['installation_session'] = self
if type(profile) == str:
profile = Profile(self, profile)