Use absolute paths in initrd modification
parent
315f611f9e
commit
ae2d267e4c
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue