Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-02 10:16:48 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-02 10:16:48 +0530
commit6b218e555be5860a00297be30da22a1c09944ed2 (patch)
treed77bd085cf873058f48a07a20642627ff96628ec /archinstall
parent655ec06119ee67cbf58733f2f1902c606006bef9 (diff)
changed __enter__
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 492d7715..1411688c 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -67,9 +67,11 @@ class Installer():
log(*args, level=level, **kwargs)
def __enter__(self, *args, **kwargs):
- self.partition.mount(self.mountpoint)
- os.makedirs(f'{self.mountpoint}/boot', exist_ok=True)
- self.boot_partition.mount(f'{self.mountpoint}/boot')
+ if hasUEFI():
+ # on bios we don't have a boot partition
+ self.partition.mount(self.mountpoint)
+ os.makedirs(f'{self.mountpoint}/boot', exist_ok=True)
+ self.boot_partition.mount(f'{self.mountpoint}/boot')
return self
def __exit__(self, *args, **kwargs):