]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
config: use order /etc, /run, /lib
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Mar 2012 12:19:34 +0000 (09:19 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Mar 2012 12:19:34 +0000 (09:19 -0300)
This matches the change in systemd and udev. Log message on udev's
change by Kay Sievers:

After long consideration we came to the conclusion that user
configuration in /etc should always override the (generally
computer generated) configuration in /run. User configuration
should always be what matters over anything else. Hence rearrange
the search orders accordingly. In general this should change
very little as overriding like this is seldomn done so far,
and the order between /etc and /usr stays the same.

libkmod/libkmod.c

index 02f3b14be5c6709d64540bebb1bf6eed5c6a19cf..36ca629bcf01b47ff9836b95c2e6f0c0c0a47003 100644 (file)
@@ -59,8 +59,8 @@ static struct _index_files {
 };
 
 static const char *default_config_paths[] = {
-       "/run/modprobe.d",
        SYSCONFDIR "/modprobe.d",
+       "/run/modprobe.d",
        ROOTPREFIX "/lib/modprobe.d",
        NULL
 };