Skip to content

Commit

Permalink
Attempt X12 workaround for X13, with newer kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Brittlejf committed Oct 16, 2023
1 parent 6c626e1 commit 08815fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARCH ?= $(shell uname -m)
LINUX_VERSION ?= 5.13.1
LINUX_VERSION ?= 5.15.135

ifeq ($(shell uname),Linux)
ACCEL ?= kvm
Expand Down
3 changes: 3 additions & 0 deletions cmd/pbainit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 08815fb

Please sign in to comment.