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:
parent
ef558fdb45
commit
1515fb9fde
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue