Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79273 - [lm_sensors] `Referenced but unset environment variable evaluates to an empty string: BUS_MODULES`

Attached to Project: Arch Linux
Opened by Eric Wang (enihcam) - Wednesday, 02 August 2023, 03:08 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 02 August 2023, 22:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
`(modprobe)[282]: lm_sensors.service: Referenced but unset environment variable evaluates to an empty string: BUS_MODULES`


Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 02 August 2023, 22:48 GMT
Reason for closing:  Upstream
Additional comments about closing:  See comments
Comment by helle vaanzinn (glitsj16) - Wednesday, 02 August 2023, 21:06 GMT
I noticed the exact same message from running `journalctl -u lm_sensors`. My laptop has properly functioning sensors and I didn't touch or ran another `sensors-detect` in ages. The /usr/lib/systemd/system/lm_sensors.service does indeed reference $BUS_MODULES:

ExecStart=-/sbin/modprobe -qab $BUS_MODULES $HWMON_MODULES
ExecStart=/usr/bin/sensors -s
ExecStop=-/sbin/modprobe -qabr $BUS_MODULES $HWMON_MODULES

When explicitly adding `BUS_MODULES=""` to /etc/conf.d/lm_sensors the message goes away. Not sure if this is sound advice though, hardware differences etcetera.
Comment by loqs (loqs) - Wednesday, 02 August 2023, 21:26 GMT
A change in behavior with systemd 254 [1] now causes a warning to generated for unset env vars in systemd unit command lines.

[1] https://github.com/systemd/systemd/commit/f331434d13488425ccd8485327085d15f8f92aea
Comment by Toolybird (Toolybird) - Wednesday, 02 August 2023, 22:48 GMT
Well spotted @loqs. lm_sensors.service comes from upstream. It's only a warning...but someone should report it to lm_sensors upstream and/or add a note to the ArchWiki [1]

[1] https://wiki.archlinux.org/title/Lm_sensors

Loading...