changed __enter__
This commit is contained in:
parent
655ec06119
commit
6b218e555b
|
|
@ -67,9 +67,11 @@ class Installer():
|
||||||
log(*args, level=level, **kwargs)
|
log(*args, level=level, **kwargs)
|
||||||
|
|
||||||
def __enter__(self, *args, **kwargs):
|
def __enter__(self, *args, **kwargs):
|
||||||
self.partition.mount(self.mountpoint)
|
if hasUEFI():
|
||||||
os.makedirs(f'{self.mountpoint}/boot', exist_ok=True)
|
# on bios we don't have a boot partition
|
||||||
self.boot_partition.mount(f'{self.mountpoint}/boot')
|
self.partition.mount(self.mountpoint)
|
||||||
|
os.makedirs(f'{self.mountpoint}/boot', exist_ok=True)
|
||||||
|
self.boot_partition.mount(f'{self.mountpoint}/boot')
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __exit__(self, *args, **kwargs):
|
def __exit__(self, *args, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue