Use absolute paths in initrd modification

fixes2
Vadim vtroshchinskiy 2024-11-26 12:42:17 +01:00
parent 315f611f9e
commit ae2d267e4c
1 changed files with 3 additions and 2 deletions

View File

@ -421,12 +421,13 @@ class OpengnsysGitInstaller:
relpath = proot.relative_to(temp_dir_path)
for file in files:
abs_path = os.path.join(root, file)
full_path = os.path.join(relpath, file)
#self.__logger.debug("%s", full_path)
#self.__logger.debug("%s", abs_path)
digest = None
stat_data = os.stat(full_path)
stat_data = os.stat(abs_path)
with open(full_path, "rb") as in_file:
digest = hashlib.file_digest(in_file, "sha256").hexdigest()