Skip to content

Commit b925fce

Browse files
author
Paul C
committed
v16.3.1: fix UEFI/OVMF detection on Debian 13 Trixie
Debian Trixie's ovmf package (2025.02+) only ships 4MB firmware variants (OVMF_CODE_4M.fd, OVMF_VARS_4M.fd), dropping the old 2MB files. Add the 4M paths as first-priority lookups in all three OVMF search locations while keeping existing paths as fallbacks.
1 parent cea8fe0 commit b925fce

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wolfstack"
3-
version = "16.3.0"
3+
version = "16.3.1"
44
edition = "2024"
55
authors = ["Wolf Software Systems Ltd"]
66
description = "Server management platform for the Wolf software suite"

src/vms/manager.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ impl VmManager {
412412
let vars_dest = self.vm_efivars_path(&config);
413413
if !vars_dest.exists() {
414414
let vars_sources = [
415+
"/usr/share/OVMF/OVMF_VARS_4M.fd",
415416
"/usr/share/OVMF/OVMF_VARS.fd",
416417
"/usr/share/edk2/x64/OVMF_VARS.fd",
417418
"/usr/share/edk2-ovmf/x64/OVMF_VARS.fd",
@@ -981,6 +982,7 @@ impl VmManager {
981982

982983
// OVMF firmware code (read-only)
983984
let code_paths = [
985+
"/usr/share/OVMF/OVMF_CODE_4M.fd",
984986
"/usr/share/OVMF/OVMF_CODE.fd",
985987
"/usr/share/edk2/x64/OVMF_CODE.fd",
986988
"/usr/share/edk2-ovmf/x64/OVMF_CODE.fd",
@@ -1001,6 +1003,7 @@ impl VmManager {
10011003
if !vars_path.exists() {
10021004
// Create vars file on first boot if it wasn't created during VM creation
10031005
let vars_sources = [
1006+
"/usr/share/OVMF/OVMF_VARS_4M.fd",
10041007
"/usr/share/OVMF/OVMF_VARS.fd",
10051008
"/usr/share/edk2/x64/OVMF_VARS.fd",
10061009
"/usr/share/edk2-ovmf/x64/OVMF_VARS.fd",

0 commit comments

Comments
 (0)