Installer.mount() had accedental hard coded mountpoint.

This commit is contained in:
Anton Hvornum 2020-12-09 10:33:32 +01:00
parent 5cf09c6641
commit c5250fbe3e
1 changed files with 3 additions and 3 deletions

View File

@ -92,10 +92,10 @@ class Installer():
return False
def mount(self, partition, mountpoint, create_mountpoint=True):
if create_mountpoint and not os.path.isdir(f'{self.mountpoint}/srv/http'):
os.makedirs(f'{self.mountpoint}/srv/http')
if create_mountpoint and not os.path.isdir(f'{self.mountpoint}{mountpoint}'):
os.makedirs(f'{self.mountpoint}{mountpoint}')
partition.mount(f'{self.mountpoint}/srv/http')
partition.mount(f'{self.mountpoint}{mountpoint}')
def post_install_check(self, *args, **kwargs):
return [step for step, flag in self.helper_flags.items() if flag is False]