depmod: fix precedence order
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 19 Jan 2021 02:13:25 +0000 (18:13 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 19 Jan 2021 02:26:36 +0000 (18:26 -0800)
Configuration in /etc should have higher prio than /run.
Given how rarely configuration in /run is used with depmod, this is
likely not to cause any problems, even if it's a change in behavior.

tools/depmod.c

index 3f31cdf..8e1d9ec 100644 (file)
@@ -51,8 +51,8 @@ static int verbose = DEFAULT_VERBOSE;
 static const char CFG_BUILTIN_KEY[] = "built-in";
 static const char CFG_EXTERNAL_KEY[] = "external";
 static const char *default_cfg_paths[] = {
-       "/run/depmod.d",
        SYSCONFDIR "/depmod.d",
+       "/run/depmod.d",
        "/lib/depmod.d",
        NULL
 };