utils: obey modprobe blacklist

If the user blacklisted a module we should not override their choice.

https://github.com/NetworkManager/NetworkManager/pull/311
This commit is contained in:
Lubomir Rintel 2019-03-07 15:40:51 +01:00
parent 3f75d6a9a6
commit 9bcd634cbf

View file

@ -443,6 +443,7 @@ nm_utils_modprobe (GError **error, gboolean suppress_error_logging, const char *
/* construct the argument list */
argv = g_ptr_array_sized_new (4);
g_ptr_array_add (argv, "/sbin/modprobe");
g_ptr_array_add (argv, "--use-blacklist");
g_ptr_array_add (argv, (char *) arg1);
va_start (ap, arg1);