Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorCharles Vandevoorde <charles@vandevoorde.me>2021-05-15 20:43:47 +0200
committerCharles Vandevoorde <charles@vandevoorde.me>2021-05-15 20:43:47 +0200
commitd61801011c57e523d8463d8b8787b2350eb11516 (patch)
treee6a80948f708edd818c957c770975458823fcbb7 /archinstall
parent85fa833a8afd3bf180720461b7ffd3477f81c049 (diff)
propagate options when mounting a partition
Diffstat (limited to 'archinstall')
-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 62f1785f..5bbcb0bb 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