From 0c3668b6b6f6a8f1f4423bc2f2d257238667a05f Mon Sep 17 00:00:00 2001 From: Parham Fatemi <93884781+parhamfa@users.noreply.github.com> Date: Mon, 23 Nov 2026 19:26:10 +0330 Subject: [PATCH 1/2] Validate RouterOS 7.24.7 for BIOS and UEFI Co-Authored-By: Claude Opus 5.5 --- README.md | 4 ++-- internal/mikrotik/client.go | 5 +++++ internal/mikrotik/client_test.go | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index aced199..286fb40 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ It is intentionally not a RouterOS hardening tool. It does not create passwords - AMD64 only - Debian 12 and 13 - Ubuntu 22.04, 24.04, and 26.04 LTS -- Firmware modes validated for the exact RouterOS release (7.21.5, 7.23.5, 7.23.7, 7.23.8, and 7.24.6: legacy BIOS and installer-prepared UEFI) +- Firmware modes validated for the exact RouterOS release (7.21.5, 7.23.5, 7.23.7, 7.23.8, 7.24.6, and 7.24.7: legacy BIOS and installer-prepared UEFI) - One unambiguous local boot disk - A reboot-observable serial or WWN for the target when additional physical disks are visible - One Ethernet uplink with a single routing policy @@ -29,7 +29,7 @@ It is intentionally not a RouterOS hardening tool. It does not create passwords The preflight rejects RAID, multipath, ambiguous rescue disks, multiple uplinks/default routes, policy routing, VLANs, bonds, bridges, PPP, and other layouts that v1 cannot translate credibly. -V1 blocks a UEFI-booted Linux host unless that exact long-term CHR release has passed the installer's UEFI preparation and boot matrix. The official CHR 7.21.5, 7.23.5, 7.23.7, 7.23.8, and 7.24.6 images place `BOOTX64.EFI` and their boot maps on an ext2 partition that standard UEFI firmware cannot read. On a validated UEFI host, the installer copies those verified files into a deterministic FAT16 filesystem in the same existing 32 MiB EFI-designated partition. It does not add or move partitions, and BIOS hosts retain the official ext2 boot partition unchanged. +V1 blocks a UEFI-booted Linux host unless that exact long-term CHR release has passed the installer's UEFI preparation and boot matrix. The official CHR 7.21.5, 7.23.5, 7.23.7, 7.23.8, 7.24.6, and 7.24.7 images place `BOOTX64.EFI` and their boot maps on an ext2 partition that standard UEFI firmware cannot read. On a validated UEFI host, the installer copies those verified files into a deterministic FAT16 filesystem in the same existing 32 MiB EFI-designated partition. It does not add or move partitions, and BIOS hosts retain the official ext2 boot partition unchanged. ## Run preflight first diff --git a/internal/mikrotik/client.go b/internal/mikrotik/client.go index e860587..8d6fbee 100644 --- a/internal/mikrotik/client.go +++ b/internal/mikrotik/client.go @@ -69,6 +69,11 @@ var testedVersions = map[string]testedRelease{ UEFI: true, UEFIArchiveSHA256: "692672e6cac9cfaa4f37c6334d07760d49e074b50befc61f0904270553f17126", }, + "7.24.7": { + BIOS: true, + UEFI: true, + UEFIArchiveSHA256: "fc690ac62f0244586baafeb6fc886f277a371ec31b6e7cccb61d237e848cdb6e", + }, } type Client struct { diff --git a/internal/mikrotik/client_test.go b/internal/mikrotik/client_test.go index 27163c0..5a1ad5e 100644 --- a/internal/mikrotik/client_test.go +++ b/internal/mikrotik/client_test.go @@ -14,7 +14,7 @@ import ( ) func TestResolveLatest(t *testing.T) { - for _, version := range []string{"7.21.5", "7.23.5", "7.23.7", "7.23.8", "7.24.6"} { + for _, version := range []string{"7.21.5", "7.23.5", "7.23.7", "7.23.8", "7.24.6", "7.24.7"} { t.Run(version, func(t *testing.T) { checksum := testedVersions[version].UEFIArchiveSHA256 server := httptest.NewServer(http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) { @@ -44,7 +44,7 @@ func TestResolveLatest(t *testing.T) { func TestResolveLatestDisablesUEFIForUnvalidatedArchive(t *testing.T) { checksum := fmt.Sprintf("%x", sha256.Sum256([]byte("replacement archive"))) - for _, version := range []string{"7.21.5", "7.23.5", "7.23.7", "7.23.8", "7.24.6", "7.99.1"} { + for _, version := range []string{"7.21.5", "7.23.5", "7.23.7", "7.23.8", "7.24.6", "7.24.7", "7.99.1"} { t.Run(version, func(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) { switch request.URL.Path { From 0986536b290fa7e3493503347d889677a93c3cf8 Mon Sep 17 00:00:00 2001 From: Parham Fatemi <93884781+parhamfa@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:02:59 +0330 Subject: [PATCH 2/2] Install the virtual kernel flavor in writer QEMU jobs linux-image-generic on ubuntu-26.04 pulls about 1 GB of hardware firmware (linux-firmware-*), which took 9-15 minutes to download and pushed the writer jobs into their 15-minute timeout. linux-image-virtual installs the same kernel and module packages without the firmware the QEMU guests never load. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/qemu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/qemu.yml b/.github/workflows/qemu.yml index 571fd17..84997aa 100644 --- a/.github/workflows/qemu.yml +++ b/.github/workflows/qemu.yml @@ -60,7 +60,7 @@ jobs: go-version: "1.24.x" cache: true - name: Install QEMU - run: sudo env DEBIAN_FRONTEND=noninteractive apt-get update && sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y qemu-system-x86 linux-image-generic grub-pc-bin grub2-common e2fsprogs fdisk kexec-tools + run: sudo env DEBIAN_FRONTEND=noninteractive apt-get update && sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y qemu-system-x86 linux-image-virtual grub-pc-bin grub2-common e2fsprogs fdisk kexec-tools - name: Build writer binary env: CGO_ENABLED: "0"