Mount fix

fixes
Vadim vtroshchinskiy 2024-10-24 10:35:47 +02:00
parent 9af377f9fa
commit aae1f3a1b7
1 changed files with 3 additions and 2 deletions

View File

@ -968,7 +968,7 @@ class OpengnsysGitLibrary:
errstr = f"""We've failed to find metadata for the root filesystem!
Root: {root}
FS data: """
errstr = errstr + json.dumps(self.mounts)
errstr = errstr + json.dumps(self.mounts, indent=4)
self.logger.error(errstr)
raise RuntimeError(errstr)
@ -1377,6 +1377,7 @@ class OpengnsysGitLibrary:
ntfs = NTFSLibrary(self.ntfs_implementation)
ntfs.mount_filesystem(device, path)
self.mounts = self._parse_mounts()
else:
self.logger.debug("Handling a non-NTFS filesystem")
@ -1752,7 +1753,7 @@ if __name__ == '__main__':
logger.debug("Starting")
ntfs_impl = NTFSImplementation.KERNEL
ntfs_impl = NTFSImplementation.NTFS3G
if not args.ntfs_type is None:
if args.ntfs_type == "kernel":