Make symlink to relative path.

This commit is contained in:
Andrei Leonchikov 2025-09-20 21:23:56 +00:00
parent 212eb19d50
commit 53cbdea378

View File

@ -279,7 +279,7 @@ class OS:
self.__sudo(f"rm {temp_dir}/usr/bin/qemu-{self.arch}", shell=True)
sqh_fn = f"{ROOT_DIR}/out/root_{date}.sqh"
self.__make_sqh(temp_dir, sqh_fn)
os.symlink(sqh_fn, f"{ROOT_DIR}/out/root.sqh.tmp")
os.symlink(f"root_{date}.sqh", f"{ROOT_DIR}/out/root.sqh.tmp")
os.rename(f"{ROOT_DIR}/out/root.sqh.tmp", f"{ROOT_DIR}/out/root.sqh")
self.__tmp_clean(temp_dir)