Fix typo that causes crash when creating encrypted LUKS partition (closes #248)

This commit is contained in:
Alexander Seiler 2021-04-09 05:00:43 +02:00
parent 99d75c2831
commit 437315669f
No known key found for this signature in database
GPG Key ID: F57560CED0957222
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class luks2():
os.path.basename(mountpoint) # TODO: Raise exception instead?
wait_timer = time.time()
while pathlib.Paht(partition.path).exists() is False and time.time() - wait_timer < 10:
while pathlib.Path(partition.path).exists() is False and time.time() - wait_timer < 10:
time.sleep(0.025)
sys_command(f'/usr/bin/cryptsetup open {partition.path} {mountpoint} --key-file {os.path.abspath(key_file)} --type luks2')