Skip to content

Extract hardcoded modprobe path to MODPROBE_PATH macro

Jan Vaclav requested to merge jvaclav/NetworkManager:jv/extract-modprobe into main

Summary

Replaces the hardcoded /sbin/modprobe path with a compile-time MODPROBE_PATH macro definition. Closes #1257 (closed)

Purpose

As mentioned in the original issue, it makes NM more portable when it is looked up from PATH instead of expecting it to be at a particular hardcoded path.

Checklist

Please read https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md before opening the merge request. In particular, check that:

  • the subject for all commits is concise and explicative
  • the message for all commits explains the reason for the change
  • the source is properly formatted
  • any relevant documentation is up to date
  • you have added unit tests if applicable
Edited by Jan Vaclav

Merge request reports

Loading