Added some debugging.

This commit is contained in:
Anton Hvornum 2021-03-09 12:02:14 +01:00
parent 3bf8ba0819
commit 747d620596
1 changed files with 2 additions and 0 deletions

View File

@ -189,8 +189,10 @@ class Partition():
raise DiskError(f'Could not find appropriate parent for encrypted partition {self}')
def detect_inner_filesystem(self, password):
log(f'Trying to detect inner filesystem format on {self} (This might take a while)', level=LOG_LEVELS.Info)
from .luks import luks2
with luks2(self, 'luksloop', password, auto_unmount=True) as unlocked_device:
print('Found:', unlocked_device.filesystem)
return unlocked_device.filesystem
def has_content(self):