Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nwipe doesn't auto load drivetemp module on Debian 11 - drive temperatures missing #389

Closed
PartialVolume opened this issue Dec 2, 2021 · 1 comment · Fixed by #390
Closed
Assignees
Labels

Comments

@PartialVolume
Copy link
Collaborator

The error "warning: hwmon: Unable to load module drivetemp, drivetemp may be built into the kernel."

Although hwmon & drivetemp modules are automatically installed in Debian 11, due to /sbin not being in the $PATH when logged in as root nwipe fails to run the modprobe when attempting to load the drivetemp module at startup and therefore the shell returns command not found. nwipe doesn't report this quite correctly and that needs fixing too.

The main fix is to use much the same technique we use for other external programs and that is to search a number of typical paths first before giving up trying to load the drivetemp module and not rely solely upon the command being found in the current $PATH.

@PartialVolume PartialVolume self-assigned this Dec 2, 2021
@Firminator
Copy link
Contributor

nice find

PartialVolume added a commit that referenced this issue Dec 2, 2021
…ian_11

Check multiple paths for modprobe
Fixes #389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants