Merge pull request 'refs #3767 -- windows boot fixes v2' (#114) from windows-boot-fixes into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details

Reviewed-on: #114
pull/115/head 1.4.3
Vadim vtroshchinskiy 2025-09-09 17:10:38 +02:00
commit faf4c2ae26
2 changed files with 14 additions and 1 deletions

View File

@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.4.4] - 2025-09-09
## Change
- Oggit Windows EFI boot fixes v2
## [1.4.3] - 2025-09-09
## Change

View File

@ -833,6 +833,9 @@ class OpengnsysGitLibrary:
boot_device = self.fs.find_boot_device()
boot_mount = self.fs.find_mountpoint(boot_device)
loader_dir = os.path.join(boot_mount, "EFI", "Microsoft", "Boot")
loader_file = os.path.join(loader_dir, "bootmgfw.efi")
ogloader_file = os.path.join(ogboot_dir, "ogloader.efi")
if os.path.exists(loader_dir):
if os.path.exists(ogboot_dir):
@ -840,7 +843,10 @@ class OpengnsysGitLibrary:
shutil.rmtree(ogboot_dir)
self.logger.debug("Copying Windows boot files from %s to %s", loader_dir, ogboot_dir)
shutil.copytree(loader_dir, ogboot_dir)
shutil.copytree(loader_dir, ogboot_dir, symlinks=True)
self.logger.debug("Copying loader from %s to %s", loader_file, ogloader_file)
shutil.copy(loader_file, ogloader_file)
else:
self.logger.error("Failed to find Windows bootloader in %s", loader_dir)