chiark / gitweb /
modules-load: filter out double modules
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Sep 2011 00:57:02 +0000 (02:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Sep 2011 01:56:55 +0000 (03:56 +0200)
src/modules-load.c

index 4b3b121..17b5e0b 100644 (file)
@@ -131,6 +131,7 @@ finish:
 
         if (n_arguments > 3) {
                 arguments[n_arguments] = NULL;
 
         if (n_arguments > 3) {
                 arguments[n_arguments] = NULL;
+                strv_uniq(arguments);
                 execv("/sbin/modprobe", arguments);
 
                 log_error("Failed to execute /sbin/modprobe: %m");
                 execv("/sbin/modprobe", arguments);
 
                 log_error("Failed to execute /sbin/modprobe: %m");