Skip to content

Conversation

@aurel32
Copy link

@aurel32 aurel32 commented Apr 12, 2025

The lm-sensors library is widely used in various software, which could be run in VMs where HWMON support may be absent (e.g. cloud kernels in Debian). To avoid a confusing "/sys: No sensors at /sys/class/hwmon" on the console or in the logs, only emit the message if the user specifies an alternative path through SENSORS_SYSFS_ROOT. This behavior mirrors what is done for the "Not a sysfs mount" message.

Fixes: 89548da ("Add SENSORS_SYSFS_ROOT environment support")

The lm-sensors library is widely used in various software, which could
be run in VMs where HWMON support may be absent (e.g. cloud kernels in
Debian). To avoid a confusing "/sys: No sensors at /sys/class/hwmon" on
the console or in the logs, only emit the message if the user specifies
an alternative path through SENSORS_SYSFS_ROOT. This behavior mirrors
what is done for the "Not a sysfs mount" message.

Fixes: 89548da ("Add SENSORS_SYSFS_ROOT environment support")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant