Added some debugging

This commit is contained in:
Anton Hvornum 2022-02-09 11:40:30 +01:00
parent 369daa43fc
commit de974322f9
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
2 changed files with 3 additions and 3 deletions

View File

@ -84,4 +84,4 @@ class MapperDev:
def format(self, filesystem :str, options :List[str] = []) -> bool:
# TODO: Create a format() helper function rather than relying on a dummy Partition().format() call:
self.partition.format(filesystem=filesystem, options = options, path=self.path)
self.partition.format(filesystem=filesystem, options=options, path=self.path)

View File

@ -13,7 +13,7 @@ if TYPE_CHECKING:
from .disk import Partition, convert_device_to_uuid, MapperDev
from .general import SysCommand, SysCommandWorker
from .output import log
from .exceptions import SysCallError, DiskError
from .exceptions import DiskError
class luks2:
def __init__(self,
@ -102,7 +102,7 @@ class luks2:
'luksFormat', partition.path,
])
cryptworker = SysCommandWorker(cryptsetup_args)
cryptworker = SysCommandWorker(cryptsetup_args, peak_output=True)
pw_given = False
while cryptworker.is_alive():