Merge branch 'enhancements' into windows-boot-fixes

windows-boot-fixes
Vadim vtroshchinskiy 2024-12-16 13:03:06 +01:00
commit 3b19b2014a
4 changed files with 16 additions and 10 deletions

View File

@ -73,7 +73,9 @@ Esto clona un repositorio del ogrepository. El destino es un dispositivo físico
* Windows debe haber sido apagado completamente, sin hibernar. Ver https://learn.microsoft.com/en-us/troubleshoot/windows-client/setup-upgrade-and-drivers/disable-and-re-enable-hibernation
* Windows debe haber sido apagado limpiamente, usando "Apagar sistema". Es posible que gitlib no pueda montar un disco de un sistema apagado incorrectamente. En ese caso hay que volver a iniciar Windows, y apagarlo.
* No se puede usar cifrado de disco (Bitlocker)
* No se puede usar cifrado de disco (Bitlocker). Es posible desactivarlo: https://answers.microsoft.com/en-us/windows/forum/all/how-to-disable-bitlocker-in-windows-10/fc9e12d6-a8cd-4515-ab8f-379c6409aa56
* Es recomendable ejecutar un proceso de limpieza de disco.
* Es recomendable compactar WinSxS con `Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase`
## Restauración

View File

@ -224,6 +224,7 @@ def format_value(bcd, bcd_value):
return (typename, length, str_value)
def dump_all(root, depth = 0):
padding = "\t" * depth

View File

@ -43,6 +43,7 @@ from disk import *
from ntfs import *
import re
import uuid
from tqdm import tqdm
class OgProgressPrinter(git.RemoteProgress):
"""
@ -68,18 +69,18 @@ class OgProgressPrinter(git.RemoteProgress):
def __init__(self, parentLogger):
super().__init__()
self.logger = parentLogger
self.prev_len = 0
print("\n", file=sys.stderr)
if sys.stdin.isatty():
self.progress = tqdm()
def update(self, op_code, cur_count, max_count=None, message=""):
self.logger.debug(f"Progress: {op_code} {cur_count}/{max_count}: {message}")
status_string = "Progress: %s %s/%s: %s" % (op_code, cur_count, max_count, message)
padded_string = status_string.rjust(self.prev_len, " ")
self.prev_len = len(status_string)
print(f"\r{padded_string}", file=sys.stderr, end="")
if self.progress:
self.progress.total = max_count
self.progress.n = cur_count
self.progress.desc = message
self.progress.refresh()
def __del__(self):
print("\n", file=sys.stderr)
@ -1636,4 +1637,4 @@ if __name__ == '__main__':
#
# Make sure all filesystem changes are written, just in case the oglive is rebooted without an unmount
os.sync()
os.sync()

View File

@ -1,9 +1,11 @@
gitdb==4.0.11
GitPython==3.1.43
libarchive==0.4.7
libarchive-c==5.1
nose==1.3.7
pathlib==1.0.1
pkg_resources==0.0.0
pylibacl==0.7.0
pylibblkid==0.3
pyxattr==0.8.1
smmap==5.0.1
tqdm==4.66.5