package/network-manager: set modprobe path to /sbin/modprobe

With -Dmodprobe left empty, meson setup searches /sbin and /usr/sbin
on the host, and if it finds modprobe bakes the path into
MODPROBE_PATH, which may be different from the install path on the
target.

Pass -Dmodprobe=/sbin/modprobe: both busybox's and kmod's modprobe
resolve there; a missing modprobe only costs an error log at runtime.

Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
[Fiona: clarify that only /sbin and /usr/sbin are searched, not $PATH]
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
This commit is contained in:
TIAN Yuanhao
2026-09-22 05:29:36 -07:00
committed by Fiona Klute
parent 07518e6b69
commit dbb77fc03f

View File

@@ -31,6 +31,7 @@ NETWORK_MANAGER_CONF_OPTS = \
-Dqt=false \
-Diptables=/usr/sbin/iptables \
-Dip6tables=/usr/sbin/ip6tables \
-Dmodprobe=/sbin/modprobe \
-Difupdown=false \
-Dnm_cloud_setup=false \
-Dsession_tracking_consolekit=false