Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2020 21:46:46 +0200
From:      Tomasz CEDRO <tomek@cedro.info>
To:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: kernel module disable / blacklist
Message-ID:  <CAM8r67DebFb7RbkWw8SOED2xzMcwYP_HRSP_UFrP%2Bp-AhYYctA@mail.gmail.com>
In-Reply-To: <CAM8r67BXdcazjbnCuSVtkbe8UtzuNOqbUjJOrA6kF%2B8d5KdLYg@mail.gmail.com>
References:  <CAM8r67BXdcazjbnCuSVtkbe8UtzuNOqbUjJOrA6kF%2B8d5KdLYg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 31, 2020 at 6:22 PM Tomasz CEDRO wrote:
> I am creating an embedded system that exposes the serial port over
> USB. This causes auto-load ucom, umodem, u3g modules, even though I
> have removed them by hand. Because of the development steps I need to
> plug and unplug that device quite often. It would be lovely to be able
> to blacklist a given set of modules so they does not auto-load on
> device connect. `module_blacklist` in `loader.conf` does not seem to
> work at runtime.
>
> Is there a simple way to temporarily blacklist given modules?
>
> I would prefer not to modify the devd configurations because also I
> have a u3g modem in my laptop that I would like to use by default.
> Temporary blacklist should ideally have a precedence over devd.

`service devd stop` for testing and then `service devd start` did the
trick as it was the one loading modules.

No need to blacklist a module, sorry, I was curious if there was such
option in FreeBSD :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM8r67DebFb7RbkWw8SOED2xzMcwYP_HRSP_UFrP%2Bp-AhYYctA>