Changing debug information
This commit is contained in:
parent
f2d867b0a7
commit
c2ddf726ef
|
|
@ -123,6 +123,7 @@ class Filesystem:
|
||||||
else:
|
else:
|
||||||
loopdev = f"{storage.get('ENC_IDENTIFIER', 'ai')}{pathlib.Path(partition['device_instance'].path).name}"
|
loopdev = f"{storage.get('ENC_IDENTIFIER', 'ai')}{pathlib.Path(partition['device_instance'].path).name}"
|
||||||
|
|
||||||
|
print(partition['!password'])
|
||||||
partition['device_instance'].encrypt(
|
partition['device_instance'].encrypt(
|
||||||
password=partition['!password'],
|
password=partition['!password'],
|
||||||
key_size=storage['arguments']['crypt_key_size'],
|
key_size=storage['arguments']['crypt_key_size'],
|
||||||
|
|
@ -130,7 +131,6 @@ class Filesystem:
|
||||||
iter_time=storage['arguments']['crypt_iter_time']
|
iter_time=storage['arguments']['crypt_iter_time']
|
||||||
)
|
)
|
||||||
# Immediately unlock the encrypted device to format the inner volume
|
# Immediately unlock the encrypted device to format the inner volume
|
||||||
print(partition['!password'])
|
|
||||||
with luks2(partition['device_instance'], loopdev, partition['!password'], auto_unmount=True) as unlocked_device:
|
with luks2(partition['device_instance'], loopdev, partition['!password'], auto_unmount=True) as unlocked_device:
|
||||||
if not partition.get('wipe'):
|
if not partition.get('wipe'):
|
||||||
if storage['arguments']['silent']:
|
if storage['arguments']['silent']:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue