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.feeds+github@gmail.com>2020-12-06 23:08:12 +0100
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-12-06 23:08:12 +0100
commit17883fcb9f42f0ac6df21bb1d16fcecca3efa131 (patch)
tree53e3a5bbc14113d827f86dd2fdbdbd3573739a13 /archinstall/lib/installer.py
parentc7228910a7d2990ba9d34ac55d0d5f28ad9bbed6 (diff)
Check if directory exists before mounting
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index f06d38ea..7208a7fd 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -89,7 +89,10 @@ class Installer():
self.log(f"Submit this zip file as an issue to https://github.com/Torxed/archinstall/issues", level=LOG_LEVELS.Warning)
return False
- def mount(self, partition, mountpoint):
+ 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')
+
partition.mount(f'{self.mountpoint}/srv/http')
def post_install_check(self, *args, **kwargs):