From 08815fba29ef4d3abccc92c048a7fd3385eaedd2 Mon Sep 17 00:00:00 2001 From: Fredrik Hindersson Date: Mon, 16 Oct 2023 13:43:41 +0200 Subject: [PATCH] Attempt X12 workaround for X13, with newer kernel --- Makefile | 2 +- cmd/pbainit/main.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3c09dd0..86991ee 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ARCH ?= $(shell uname -m) -LINUX_VERSION ?= 5.13.1 +LINUX_VERSION ?= 5.15.135 ifeq ($(shell uname),Linux) ACCEL ?= kvm diff --git a/cmd/pbainit/main.go b/cmd/pbainit/main.go index 0e8aefc..57eb3fa 100644 --- a/cmd/pbainit/main.go +++ b/cmd/pbainit/main.go @@ -177,6 +177,9 @@ func main() { if dmi.BaseboardManufacturer == "Supermicro" && strings.HasPrefix(dmi.BaseboardProduct, "X12") { log.Printf("Work-around: Rebooting system instead of utilizing 'boot'") Execute("/bbin/shutdown", "reboot") + } else if dmi.BaseboardManufacturer == "Supermicro" && strings.HasPrefix(dmi.BaseboardProduct, "X13") { + log.Printf("Work-around: Rebooting system instead of utilizing 'boot'") + Execute("/bbin/shutdown", "reboot") } else { Execute("/bbin/boot") }