All of
 help / color / mirror / Atom feed
From: Lubomir Rintel <>
To: Lucas De Marchi <>
Cc:, Lubomir Rintel <>
Subject: [RESEND PATCH] modprobe: install default configuration
Date: Fri,  1 Sep 2017 13:28:01 +0200	[thread overview]
Message-ID: <> (raw)

Some network devices have an awful habit of creating interfaces when loaded,
despite not asked for. Worse even, they do so while being autoloaded due to an
attempt to create a device via netlink:

  # rmmod dummy
  # ip link add dummy0 type dummy
  RTNETLINK answers: File exists

The kernel maintainers seem opposed to fixing this in kernel (despite a similar
thing has been done with loop block devices) [1]. Let's fix this my overriding the
defaults from userspace.

This seems to have slipped through the cracks.                |  4 ++++
 modprobe.d/50-default.conf | 24 ++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 modprobe.d/50-default.conf

diff --git a/ b/
index 2a1eb50..b114db8 100644
--- a/
+++ b/
@@ -105,6 +105,10 @@ bashcompletiondir=@bashcompletiondir@
 dist_bashcompletion_DATA = \
+dist_modprobed_DATA = \
+	modprobe.d/50-default.conf
 	if test "$(libdir)" != "$(rootlibdir)"; then \
 		$(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
diff --git a/modprobe.d/50-default.conf b/modprobe.d/50-default.conf
new file mode 100644
index 0000000..70d21f2
--- /dev/null
+++ b/modprobe.d/50-default.conf
@@ -0,0 +1,24 @@
+# default module parameters
+# This file is part of kmod.
+# Copyright 2016 Lubomir Rintel
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# General Public License for more details.
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program; if not, see <>.
+# See modprobe.d(5) for the description of the files in this directory,
+options bonding max_bonds=0
+options dummy numdummies=0
+options ifb numifbs=0

             reply	other threads:[~2017-09-01 11:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-01 11:28 Lubomir Rintel [this message]
2017-09-08 21:03 ` [RESEND PATCH] modprobe: install default configuration Lucas De Marchi
2017-09-08 21:30   ` Marco d'Itri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.