Skip to content

Commit

Permalink
fix: remove mouse from default probe list
Browse files Browse the repository at this point in the history
It's causing a segfault on aarch64-linux. This is a short-term fix until we can get to the bottom of it.

Signed-off-by: Brian McGee <brian@bmcgee.ie>

#87 has been created to track this.
Closes #84.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
  • Loading branch information
brianmcgee authored and mergify[bot] committed Aug 16, 2024
1 parent 5d5cc1f commit 953936e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -99,13 +99,13 @@ func init() {
// These will be added on a priority / need basis.

defaultFeatures := []string{
"memory", "pci", "net", "serial", "cpu", "bios", "monitor", "mouse", "scsi", "usb", "prom", "sbus", "sys",
"sysfs", "udev", "block", "wlan",
"memory", "pci", "net", "serial", "cpu", "bios", "monitor", "scsi", "usb", "prom", "sbus", "sys", "sysfs",
"udev", "block", "wlan",
}

// we strip default and int from the feature list
allFeatures := hwinfo.ProbeFeatureStrings()
slices.DeleteFunc(allFeatures, func(str string) bool {
probeFeatures := hwinfo.ProbeFeatureStrings()
slices.DeleteFunc(probeFeatures, func(str string) bool {
switch str {
case "default", "int":
return true
@@ -121,7 +121,7 @@ func init() {
defaultFeatures,
fmt.Sprintf(
"Hardware items to probe. Possible values are %s",
strings.Join(allFeatures, ","),
strings.Join(probeFeatures, ","),
),
)
}

0 comments on commit 953936e

Please sign in to comment.