Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-15 19:28:23 +0000
committerGitHub <noreply@github.com>2021-05-15 19:28:23 +0000
commit2e168790c83722b8fdffa293f97f16721c1df207 (patch)
tree30ea5313188c016890375356efffb6932bec5f9d
parent9daf7ce9974a534d37a0b8f35c3f9a7f7aae0332 (diff)
parentd61801011c57e523d8463d8b8787b2350eb11516 (diff)
Merge pull request #450 from charlesvdv/master
propagate options when mounting a partition
-rw-r--r--archinstall/lib/disk.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 5967bf3e..c099cca1 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -384,7 +384,10 @@ class Partition():
pathlib.Path(target).mkdir(parents=True, exist_ok=True)
try:
- sys_command(f'/usr/bin/mount {self.path} {target}')
+ if options:
+ sys_command(f'/usr/bin/mount -o {options} {self.path} {target}')
+ else:
+ sys_command(f'/usr/bin/mount {self.path} {target}')
except SysCallError as err:
raise err