Merge pull request #450 from charlesvdv/master
propagate options when mounting a partition
This commit is contained in:
commit
2e168790c8
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue