Skip to content

Commit

Permalink
Merge pull request #10 from elastx/jocke_fix_sas_filter
Browse files Browse the repository at this point in the history
Fix SCSI workaround, Execute expects arguments seperately. Also remov…
  • Loading branch information
jhindersson authored Nov 10, 2023
2 parents 2b1067a + cef3b03 commit cc243c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/pbainit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ func main() {
// systems keep the drives in an unlocked state during software triggered reboots,
// which means that the "real" kernel and rootfs should be booted afterwards
if dmi.BaseboardManufacturer == "Supermicro" {
if strings.HasPrefix(dmi.BaseboardProduct, "X12DPT-B6") {
reboot_bug = true
}
//if strings.HasPrefix(dmi.BaseboardProduct, "X12DPT-B6") {
// reboot_bug = true
//}
//if strings.HasPrefix(dmi.BaseboardProduct, "X13SET-G") {
// reboot_bug = true
//}
Expand All @@ -197,7 +197,7 @@ func main() {
// corrupted filsystems if they are mounted and altered during boot
// Right now 0064, 00c9 and 00c4 is LSI cards with lspci -nn
log.Printf("Work-around: Swift node, do not mount data disks when searching for kernel!")
Execute("/bbin/boot -block='0x1000:0x0064,0x1000:0x00c9,0x1000:0x00c4'")
Execute("/bbin/boot", "-block=0x1000:0x0064,0x1000:0x00c9,0x1000:0x00c4")
} else {
Execute("/bbin/boot")
}
Expand Down

0 comments on commit cc243c8

Please sign in to comment.