Merge pull request #249 from goggle/patch-248

Fix typo that causes crash when creating encrypted LUKS partition (closes #248)
This commit is contained in:
Anton Hvornum 2021-04-09 07:57:39 +00:00 committed by GitHub
commit ad25f92c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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')