From 57b5a36f43674391cf998e016a16a592d0eab994 Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Mon, 16 Nov 2026 21:39:45 +0300 Subject: [PATCH 01/11] uefi_memory_services: retry ExitBootServices() on a stale map key The UEFI firmware allows drivers to register an event listener for ExitBootServices() events via EFI_EVENT_GROUP_BEFORE_EXIT_BOOT_SERVICES. For example, EDK2 after 12c5ded ("FatPkg: Clean any volume caches during exit boot services") registers such a handler and flushes dirty FAT blocks back to disk, which causes a few allocations and frees to take place, thus invalidating the memory map key we're holding. This means we must retry ExitBootServices() in a loop, 2 should be enough for EDK2 specifically, but let's give some leeway for other implementations as well. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- loader/uefi/uefi_memory_services.c | 113 ++++++++++++++++++++--------- 1 file changed, 80 insertions(+), 33 deletions(-) diff --git a/loader/uefi/uefi_memory_services.c b/loader/uefi/uefi_memory_services.c index b6f1dac7..c8863af1 100644 --- a/loader/uefi/uefi_memory_services.c +++ b/loader/uefi/uefi_memory_services.c @@ -343,12 +343,28 @@ const void *services_get_captured_uefi_map(size_t *out_size) return uefi_map_capture_buf; } +/* + * The UEFI firmware allows drivers to register an event listener for + * ExitBootServices() events via EFI_EVENT_GROUP_BEFORE_EXIT_BOOT_SERVICES. + * + * For example, EDK2 after 12c5ded ("FatPkg: Clean any volume caches during + * exit boot services") registers such a handler and flushes dirty FAT blocks + * back to disk, which causes a few allocations and frees to take place, thus + * invalidating the memory map key we're holding. + * + * This means we must retry ExitBootServices() in a loop, 2 should be enough + * for EDK2 specifically, but let's give some leeway for other implementations + * as well. + */ +#define EXIT_BOOT_SERVICES_MAX_ATTEMPTS 5 + size_t services_release_resources(void *buf, size_t capacity, size_t elem_size, mme_convert_t entry_convert) { SERVICE_FUNCTION(); + struct string_view err_msg; EFI_STATUS ret; - size_t i; + size_t i, attempt; /* * Only log errors after first call to GetMemoryMap, @@ -356,48 +372,79 @@ size_t services_release_resources(void *buf, size_t capacity, size_t elem_size, */ logger_set_level(LOG_LEVEL_ERR); - /* - * Hand the kernel the exact map used for ExitBootServices() below: capture - * the raw EFI descriptors before converting the buffer to the native format - * in place. Probing calls (buf == NULL) never reach ExitBootServices(), so - * skip the copy for those. No allocation happens between here and - * ExitBootServices(), so the map key stays valid. - */ - acquire_efi_memory_map(); - if (buf) - capture_raw_efi_memory_map(); - efi_memory_map_fixup(); + for (attempt = 1;; attempt++) { + void *out = buf; + + /* + * Hand the kernel the exact map used for ExitBootServices() below: + * capture the raw EFI descriptors before converting the buffer to the + * native format in place. Probing calls (buf == NULL) never reach + * ExitBootServices(), so skip the copy for those. No allocation happens + * between here and ExitBootServices(), so the map key stays valid. + */ + acquire_efi_memory_map(); + if (buf) + capture_raw_efi_memory_map(); + efi_memory_map_fixup(); + + if (capacity < buf_entry_count) { + /* + * The firmware changed the map behind our back after a failed + * ExitBootServices(). Growing the buffer would still be allowed + * (it only takes memory allocation services), but the caller has + * already sized and laid out its buffer by now and doesn't expect + * to be asked again, so there's no recovering from this. + */ + if (unlikely(attempt > 1)) { + panic( + "memory map grew to %zu entries (capacity %zu) after " + "a failed ExitBootServices()\n", buf_entry_count, capacity + ); + } + + return buf_entry_count; + } - if (capacity < buf_entry_count) - return buf_entry_count; + /* + * The buffer is finally large enough, we can now destroy loader + * reclaimable memory if the protocol doesn't support it and + * transform it into MEMORY_TYPE_FREE safely as services are now + * disabled. + */ + buf_entry_count = mm_fixup( + memory_map_buf, buf_entry_count, + buf_byte_capacity / sizeof(struct memory_map_entry), + FIXUP_NO_PRESERVE_LOADER_RECLAIM + ); - /* - * The buffer is finally large enough, we can now destroy loader - * reclaimable memory if the protocol doesn't support it and - * transform it into MEMORY_TYPE_FREE safely as services are now - * disabled. - */ - buf_entry_count = mm_fixup(memory_map_buf, buf_entry_count, - buf_byte_capacity / sizeof(struct memory_map_entry), - FIXUP_NO_PRESERVE_LOADER_RECLAIM); + for (i = 0; i < buf_entry_count; ++i) { + struct memory_map_entry *me = mm_entry_at(i); - for (i = 0; i < buf_entry_count; ++i) { - struct memory_map_entry *me = mm_entry_at(i); + if (entry_convert) { + entry_convert(me, out); + } else { + memcpy(out, me, sizeof(struct memory_map_entry)); + } - if (entry_convert) { - entry_convert(me, buf); - } else { - memcpy(buf, me, sizeof(struct memory_map_entry)); + out += elem_size; } - buf += elem_size; + ret = g_st->BootServices->ExitBootServices(g_img, map_key); + if (!EFI_ERROR(ret)) + break; + + if (ret != EFI_INVALID_PARAMETER || + attempt == EXIT_BOOT_SERVICES_MAX_ATTEMPTS) + goto ebs_failed; } - ret = g_st->BootServices->ExitBootServices(g_img, map_key); - BUG_ON(EFI_ERROR(ret)); services_offline = true; - return buf_entry_count; + +ebs_failed: + err_msg = uefi_status_to_string(ret); + panic("ExitBootServices() failed after %zu attempt(s): %pSV\n", + attempt, &err_msg); } void mm_foreach_entry(mme_foreach_t func, void *user) From 6f018886615a4a004ae6f138c4a05cadebe60e27 Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Mon, 16 Nov 2026 21:39:45 +0300 Subject: [PATCH 02/11] aarch64/handover: don't sign-extend TG1 into the upper TCR bits Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- loader/arch/aarch64/handover_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/arch/aarch64/handover_impl.c b/loader/arch/aarch64/handover_impl.c index f18d8094..57e87fcf 100644 --- a/loader/arch/aarch64/handover_impl.c +++ b/loader/arch/aarch64/handover_impl.c @@ -227,7 +227,7 @@ void handover_prepare_for(struct handover_info *hi) #define TCR_DS (1ull << 59) #define TCR_HA (1ull << 39) -#define TCR_TG1_4K_GRANULE (0b10 << 30) +#define TCR_TG1_4K_GRANULE (0b10ull << 30) #define TCR_TG0_4K_GRANULE (0b00 << 14) #define TCR_SH1_SHIFT 28 #define TCR_ORGN1_SHIFT 26 From 984bf2d26b4be8e409f6f57b7e91bab0bccfcb6a Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Mon, 16 Nov 2026 22:30:22 +0300 Subject: [PATCH 03/11] memory_services: don't drop entries off the end of the map in mm_fixup When an overlap resolves into a single range (e.g. a protocol allocation exactly covering an EfiLoaderData range), mm_overlap_fixup() returned count - 1 and mm_do_fixup() skipped the stale RHS slot. However, nothing is ever removed from the buffer there, the RHS slot stays in place and compaction happens separately as the loop goes. Shrinking the read bound on top of that meant the last entry of the map was never looked at, so every such collapse silently dropped one range from the end of the map. Track the collapsed RHS explicitly and only grow the count when an extra range is actually inserted. While at it, always initialize the fixup result, lhs_type_changed was previously left uninitialized unless the type actually changed. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- loader/memory_services.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/loader/memory_services.c b/loader/memory_services.c index fb931dab..f051ec31 100644 --- a/loader/memory_services.c +++ b/loader/memory_services.c @@ -212,6 +212,11 @@ void mme_insert(struct memory_map_entry *buf, struct memory_map_entry *me, struct fixup_result { bool lhs_type_changed; + + // RHS was absorbed into LHS, its slot is now stale and must be skipped + bool rhs_consumed; + + // Number of entries physically present in the buffer after the fixup size_t new_count; }; @@ -337,17 +342,14 @@ static void mm_overlap_fixup( print_info("\n"); } - res->new_count = count - 1; - - if (or.entries[0].type != lhs->type) - res->lhs_type_changed = true; + res->new_count = count; + res->lhs_type_changed = or.entries[0].type != lhs->type; + res->rhs_consumed = or.entry_count == 1; *lhs = or.entries[0]; - if (or.entry_count >= 2) { + if (or.entry_count >= 2) *rhs = or.entries[1]; - res->new_count++; - } if (or.entry_count == 3) { res->new_count += mme_insert_try_merge(buf + rhs_idx, &or.entries[2], @@ -388,7 +390,7 @@ static size_t mm_do_fixup( mm_overlap_fixup(buf, j, i, count, buf_cap, &fr, is_intentional); // Both ranges collapsed into one, skip rhs - if (fr.new_count < count) + if (fr.rhs_consumed) ++i; count = fr.new_count; From bd21b02bff66d5827ba38fc2a929db81772c51af Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Mon, 16 Nov 2026 23:50:21 +0300 Subject: [PATCH 04/11] bios: build the PXE loader as hyper.pxe Some PXE firmware gets confused by an extensionless boot file name, so produce the PXE image as hyper.pxe instead of hyper_pxe, publish it under that name in releases and serve it as such in the PXE tests. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- .github/workflows/release.yml | 2 +- loader/arch/x86/bios/CMakeLists.txt | 2 +- tests/path_guesser.py | 2 +- tests/test_loader.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index df081cdf..3d5d95d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: cp build-clang-amd64-uefi/loader/hyper_uefi release/BOOTX64.EFI cp build-clang-aarch64-uefi/loader/hyper_uefi release/BOOTAA64.EFI cp build-clang-i686-bios/loader/hyper_iso_boot release/hyper_iso_boot - cp build-clang-i686-bios/loader/hyper_pxe release/hyper_pxe + cp build-clang-i686-bios/loader/hyper.pxe release/hyper.pxe cp installer/hyper_install release/hyper_install - name: Resolve release version diff --git a/loader/arch/x86/bios/CMakeLists.txt b/loader/arch/x86/bios/CMakeLists.txt index 03389bde..1d562545 100644 --- a/loader/arch/x86/bios/CMakeLists.txt +++ b/loader/arch/x86/bios/CMakeLists.txt @@ -48,7 +48,7 @@ set(ISO_BOOT_REC_FULL_PATH "${MBR_PATH}/${ISO_BOOT_REC_BINARY}") set(PXE_BOOT_REC_FULL_PATH "${MBR_PATH}/${PXE_BOOT_REC_BINARY}") set(STAGE2_FULL_PATH "${STAGE2_PATH}/${STAGE2_BINARY}") set(ISO_STAGE2_FULL_PATH "${STAGE2_PATH}/hyper_iso_boot") -set(PXE_STAGE2_FULL_PATH "${STAGE2_PATH}/hyper_pxe") +set(PXE_STAGE2_FULL_PATH "${STAGE2_PATH}/hyper.pxe") add_custom_command( OUTPUT diff --git a/tests/path_guesser.py b/tests/path_guesser.py index 33ea554e..6a2b27ba 100644 --- a/tests/path_guesser.py +++ b/tests/path_guesser.py @@ -61,7 +61,7 @@ def guess_path_to_hyper_iso_br(): def guess_path_to_hyper_pxe(): return _hyper_build_or_none( ["build-clang-i686-bios", "build-gcc-i686-bios"], - os.path.join("loader", "hyper_pxe")) + os.path.join("loader", "hyper.pxe")) def guess_path_to_uefi_firmware(arch): diff --git a/tests/test_loader.py b/tests/test_loader.py index de6a2f3a..097494e1 100644 --- a/tests/test_loader.py +++ b/tests/test_loader.py @@ -829,7 +829,7 @@ def _pxe_boot_image(getopt, is_uefi): """(source path, TFTP file name) of the image the firmware fetches.""" if is_uefi: return getopt(options.X64_HYPER_UEFI_OPT), "BOOTX64.EFI" - return getopt(options.HYPER_PXE_OPT), "hyper_pxe" + return getopt(options.HYPER_PXE_OPT), "hyper.pxe" @pytest.mark.parametrize("kernel_type,is_uefi", _PXE_PARAMS) From fdec1f3e46ee00b2a6cae7fda3e103c85b9f2ee8 Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Tue, 17 Nov 2026 00:01:44 +0300 Subject: [PATCH 05/11] build: install the right aarch64 QEMU package for apt qemu-system-aarch64 is only a virtual package on Debian and Ubuntu, and newer Ubuntu releases have two packages providing it (qemu-system-arm and qemu-system-arm-hwe), so apt refuses to pick one and fails with "no installation candidate". Install qemu-system-arm directly instead, it has shipped qemu-system-aarch64 all along. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index eb115b82..e5fcd137 100755 --- a/build.py +++ b/build.py @@ -34,7 +34,8 @@ "xorriso", "mtools", "qemu-system-x86", - "qemu-system-aarch64", + # qemu-system-aarch64 is only a virtual package here + "qemu-system-arm", ], "pacman": [ "parted", From 863f5df898abafda73e7765d044ce5a1de4567dd Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Tue, 17 Nov 2026 00:01:44 +0300 Subject: [PATCH 06/11] ci: only run push checks for master Every push to a branch with an open pull request triggered the workflow twice, once for the push event and once for the pull_request event, with identical results. All that is needed is to verify that master builds and that every pull request builds, so restrict the push trigger to master and let branches be checked through their pull request alone. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e63ee095..aaa57c4d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,8 @@ name: CI -on: [push, pull_request] +on: + push: + branches: [master] + pull_request: concurrency: group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }} From 1a6517be09e15d5dfce2e8ba2e88d76c7d6d3def Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Tue, 17 Nov 2026 00:01:44 +0300 Subject: [PATCH 07/11] build: add dnf support Update build_utils, which brings dnf support along with retrying source downloads across mirrors, rebuilding a toolchain whose version changed, GCC 16.2.0 and binutils 2.47. Add the dnf package lists for the base and test dependencies. While at it, update image_utils so that the tests find the UEFI firmware through Fedora's edk2 firmware descriptors too. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- build.py | 15 +++++++++++++++ build_utils | 2 +- tests/image_utils | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index e5fcd137..888ec7c2 100755 --- a/build.py +++ b/build.py @@ -18,6 +18,10 @@ "nasm", "cmake", ], + "dnf": [ + "nasm", + "cmake", + ], "brew": [ "nasm", "cmake", @@ -48,6 +52,17 @@ "qemu-system-x86", "qemu-system-aarch64", ], + "dnf": [ + "parted", + "gdisk", + "python3-pytest", + "clang", + "lld", + "xorriso", + "mtools", + "qemu-system-x86", + "qemu-system-aarch64", + ], "brew": [ "llvm", "lld", diff --git a/build_utils b/build_utils index b68bd798..3f9222b2 160000 --- a/build_utils +++ b/build_utils @@ -1 +1 @@ -Subproject commit b68bd798ada9e05fe5104b2dce4c78e996ef18c0 +Subproject commit 3f9222b292eb0e6c983445cd7e335eb4c4819de8 diff --git a/tests/image_utils b/tests/image_utils index 7951e768..291f7566 160000 --- a/tests/image_utils +++ b/tests/image_utils @@ -1 +1 @@ -Subproject commit 7951e768952ff5968ce51a1ceb09ca1d2fe25ab9 +Subproject commit 291f7566bfee42583f02d3aabd90046f3101b66e From 712fbf2a0cc65667029a72829157b1327539c203 Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Tue, 17 Nov 2026 00:01:44 +0300 Subject: [PATCH 08/11] build: add --toolchain-only Build the toolchain for the selected arch and platform and exit without touching the Hyper build directory. CI wants to cache the toolchain as its own step, separate from the loader build that follows it. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.py b/build.py index 888ec7c2..17b9d975 100755 --- a/build.py +++ b/build.py @@ -206,6 +206,8 @@ def main(): help="skip base dependencies") parser.add_argument("--fetch-test-dependencies", action="store_true", help="also fetch packages used for running the loader tests") + parser.add_argument("--toolchain-only", action="store_true", + help="build the toolchain and exit") parser.add_argument("--reconfigure", action="store_true", help="Reconfigure cmake before building") parser.add_argument("--e9-debug-log", choices=["on", "off"], @@ -222,6 +224,10 @@ def main(): args.arch, args.platform = pick_arch_and_platform(args.arch, args.platform) + if args.toolchain_only: + build_toolchain(args) + return + build_hyper(args) From 21409870b74d641b0d88071deb2af0d1099c2040 Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Tue, 17 Nov 2026 00:01:44 +0300 Subject: [PATCH 09/11] ci: save the toolchain cache right after building it actions/cache saves in a post step that only runs when the whole job succeeds, so a rebuilt toolchain was thrown away whenever a change broke the build or the tests, and the next run built GCC from scratch again. On top of that, the cache key hardcoded GCC 13.2.0 while build_utils has long been building a different version, so bumping it never invalidated the cache. Derive the key from the versions build_utils actually builds and split the step into an explicit restore, a toolchain-only build, a save that runs as soon as the toolchain step succeeds (skipped on a cache hit), and only then the loader build and the tests. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aaa57c4d..aa23e1e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,15 +40,34 @@ jobs: submodules: true - if: ${{ matrix.toolchain == 'gcc' }} - name: Restore cache - uses: actions/cache@v4.2.2 - env: - gcc-version: 13.2.0 + id: toolchain-version + name: Get the toolchain version + run: | + python3 -c 'import build_utils.toolchain_builder as tb + print(f"key=gcc-{tb.GCC_VERSION}-binutils-{tb.BINUTILS_VERSION}")' \ + >> "$GITHUB_OUTPUT" + + - if: ${{ matrix.toolchain == 'gcc' }} + id: toolchain-cache + name: Restore the toolchain cache + uses: actions/cache/restore@v4.2.2 + with: + path: "${{ github.workspace }}/toolchain/tools_${{ matrix.arch }}_${{ matrix.platform }}_gcc" + key: "${{ runner.os }}-${{ runner.arch }}-${{ matrix.arch }}-${{ matrix.platform }}-${{ steps.toolchain-version.outputs.key }}" + + - name: Build the platform toolchain + run: "${{ github.workspace }}/build.py --arch ${{ matrix.arch }} --platform ${{ matrix.platform }} --toolchain ${{ matrix.toolchain }} --no-tune-native --toolchain-only" + + # Save right away rather than in a post step, which only runs if the + # whole job succeeds and would throw the toolchain away on a failed test + - if: ${{ matrix.toolchain == 'gcc' && steps.toolchain-cache.outputs.cache-hit != 'true' }} + name: Save the toolchain cache + uses: actions/cache/save@v4.2.2 with: path: "${{ github.workspace }}/toolchain/tools_${{ matrix.arch }}_${{ matrix.platform }}_gcc" - key: "${{ runner.os }}-${{ runner.arch }}-${{ matrix.arch }}-${{ matrix.platform }}-gcc-${{ env.gcc-version }}" + key: ${{ steps.toolchain-cache.outputs.cache-primary-key }} - - name: Build platform toolchain & Hyper + - name: Build Hyper run: "${{ github.workspace }}/build.py --arch ${{ matrix.arch }} --platform ${{ matrix.platform }} --toolchain ${{ matrix.toolchain }} --fetch-test-dependencies --no-tune-native --e9-debug-log=on" - name: Build test kernel From 90bab13bde99831bd11555643db65e75e0bd8730 Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Tue, 17 Nov 2026 00:01:44 +0300 Subject: [PATCH 10/11] everywhere: use python3 from PATH The fixed /usr/bin/python3 path selects Apple's Python on macOS rather than the interpreter first on PATH, which is the one the rest of the tooling (e.g. python3 -m pytest in CI) uses. Honor PATH consistently, like the installer scripts already do. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- build.py | 2 +- tests/disk_image.py | 2 +- tests/make_disk_image.py | 2 +- tests/pxe_image.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index 17b9d975..0a544284 100755 --- a/build.py +++ b/build.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import argparse import os diff --git a/tests/disk_image.py b/tests/disk_image.py index 5fa26d72..b2dcb348 100644 --- a/tests/disk_image.py +++ b/tests/disk_image.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import shutil import os import options diff --git a/tests/make_disk_image.py b/tests/make_disk_image.py index 467955c6..63da921b 100755 --- a/tests/make_disk_image.py +++ b/tests/make_disk_image.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import argparse import options import disk_image as di diff --git a/tests/pxe_image.py b/tests/pxe_image.py index 9bf51c4a..b266c008 100644 --- a/tests/pxe_image.py +++ b/tests/pxe_image.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ Hyper-specific wiring for a (simulated) PXE boot: assembles the normal boot config plus the same module set the disk tests use, then hands it to the generic From cc47baf4518f14dc145d130c7be15be79a707f92 Mon Sep 17 00:00:00 2001 From: Daniil Tatianin <99danilt@gmail.com> Date: Tue, 17 Nov 2026 00:08:41 +0300 Subject: [PATCH 11/11] build: don't install the disabled gdisk cask on macOS brew install gdisk resolves to the gdisk cask, which Homebrew disabled on 2026-09-01 for failing the macOS Gatekeeper check, so installing the test dependencies now fails. The gptfdisk formula, which is already in the list, provides both gdisk and sgdisk, so just drop the cask. Signed-off-by: Daniil Tatianin <99danilt@gmail.com> --- build.py | 1 - 1 file changed, 1 deletion(-) diff --git a/build.py b/build.py index 0a544284..6754d1d0 100755 --- a/build.py +++ b/build.py @@ -68,7 +68,6 @@ "lld", "xorriso", "mtools", - "gdisk", "gptfdisk", "qemu", ],