Calling Partition().partprobe() instead of general partprobe. This avoids read-only issues and lets Partition().partprobe() deal with the error checks.

This commit is contained in:
Anton Hvornum 2022-02-07 09:10:39 +01:00
parent ef558fdb45
commit 1515fb9fde
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class luks2:
with open(key_file, 'wb') as fh:
fh.write(password)
SysCommand(f'bash -c "partprobe"') # Might be redundant
partition.partprobe()
cryptsetup_args = shlex.join([
'/usr/bin/cryptsetup',