Wrong variable.

This commit is contained in:
Anton Hvornum 2021-04-09 11:45:45 +02:00
parent 05e848ce62
commit 1395f0888c
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ class Partition():
if not self.filesystem: raise DiskError(f'Need to format (or define) the filesystem on {self} before mounting.')
fs = self.filesystem
pathlib.Path(self.path).mkdir(parents=True, exist_ok=True)
pathlib.Path(target).mkdir(parents=True, exist_ok=True)
try:
sys_command(f'/usr/bin/mount {self.path} {target}')