Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
5 changes: 5 additions & 0 deletions internal/mikrotik/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions internal/mikrotik/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down
Loading