* [gentoo-user] How to disable the modules service?
@ 2022-10-23 9:56 Dex Conner
2022-10-23 10:45 ` Peter Böhm
0 siblings, 1 reply; 8+ messages in thread
From: Dex Conner @ 2022-10-23 9:56 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
Hi all,
I've went module-less and the rc service called modules is still running
at startup even when I remove it with rc-update del modules boot. Is the
only way to solve this to remove the loaded modules from the config
files every time they are added?
Thank you!
--
Dex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to disable the modules service?
2022-10-23 9:56 [gentoo-user] How to disable the modules service? Dex Conner
@ 2022-10-23 10:45 ` Peter Böhm
2022-10-23 11:29 ` Dex Conner
2022-10-23 14:19 ` Dr Rainer Woitok
0 siblings, 2 replies; 8+ messages in thread
From: Peter Böhm @ 2022-10-23 10:45 UTC (permalink / raw
To: gentoo-user
Hi Dex,
we have a wiki article for this:
https://wiki.gentoo.org/wiki/Kernel_Modules#Going_completely_.22module-less.22
Greetings,
Peter
Am Sonntag, 23. Oktober 2022, 11:56:00 CEST schrieb Dex Conner:
> Hi all,
>
> I've went module-less and the rc service called modules is still running
> at startup even when I remove it with rc-update del modules boot. Is the
> only way to solve this to remove the loaded modules from the config
> files every time they are added?
>
> Thank you!
>
> --
> Dex
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to disable the modules service?
2022-10-23 10:45 ` Peter Böhm
@ 2022-10-23 11:29 ` Dex Conner
2022-10-23 11:42 ` Dale
2022-10-23 15:35 ` Neil Bothwick
2022-10-23 14:19 ` Dr Rainer Woitok
1 sibling, 2 replies; 8+ messages in thread
From: Dex Conner @ 2022-10-23 11:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 681 bytes --]
On 22/10/23 12:45PM, Peter Böhm wrote:
> Hi Dex,
>
> we have a wiki article for this:
> https://wiki.gentoo.org/wiki/Kernel_Modules#Going_completely_.22module-less.22
>
Hello Peter,
Unfortunately I had already followed that guide for going module-less
and the rc service called modules is still running. I have found that it
is the /etc/init.d/modules file which sources some folders including
/usr/lib/modules-load.d which has a module in it. I think this module
(pkcs8_key_parser) gets created after I update iwd. Is there a way to
actually remove the modules service instead of removing the modules from
the directories repeatedly?
Thank you
--
Dex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to disable the modules service?
2022-10-23 11:29 ` Dex Conner
@ 2022-10-23 11:42 ` Dale
2022-10-23 15:35 ` Neil Bothwick
1 sibling, 0 replies; 8+ messages in thread
From: Dale @ 2022-10-23 11:42 UTC (permalink / raw
To: gentoo-user
Dex Conner wrote:
> On 22/10/23 12:45PM, Peter Böhm wrote:
>> Hi Dex,
>>
>> we have a wiki article for this:
>> https://wiki.gentoo.org/wiki/Kernel_Modules#Going_completely_.22module-less.22
>>
>
> Hello Peter,
>
> Unfortunately I had already followed that guide for going module-less
> and the rc service called modules is still running. I have found that it
> is the /etc/init.d/modules file which sources some folders including
> /usr/lib/modules-load.d which has a module in it. I think this module
> (pkcs8_key_parser) gets created after I update iwd. Is there a way to
> actually remove the modules service instead of removing the modules from
> the directories repeatedly?
>
> Thank you
>
> --
> Dex
First, I don't know much about this. I did read a bit of the article
linked to tho. Could there be a USE flag that will make it not install
modules? I recall seeing kmod mentioned for some packages. It may not
apply here and if it doesn't, ignore me. It could be worth looking into
what the USE flags add or remove, just to be sure.
Hope that helps.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to disable the modules service?
2022-10-23 11:29 ` Dex Conner
2022-10-23 11:42 ` Dale
@ 2022-10-23 15:35 ` Neil Bothwick
2022-10-24 5:58 ` Dex Conner
1 sibling, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2022-10-23 15:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
On Sun, 23 Oct 2022 07:29:42 -0400, Dex Conner wrote:
> Unfortunately I had already followed that guide for going module-less
> and the rc service called modules is still running. I have found that it
> is the /etc/init.d/modules file which sources some folders including
> /usr/lib/modules-load.d which has a module in it. I think this module
> (pkcs8_key_parser) gets created after I update iwd. Is there a way to
> actually remove the modules service instead of removing the modules from
> the directories repeatedly?
You could blacklist the module in /etc/modules.d, but will iwd still work
without it?
--
Neil Bothwick
Artificial Intelligence usually beats real stupidity.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to disable the modules service?
2022-10-23 15:35 ` Neil Bothwick
@ 2022-10-24 5:58 ` Dex Conner
0 siblings, 0 replies; 8+ messages in thread
From: Dex Conner @ 2022-10-24 5:58 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 940 bytes --]
On 22/10/23 04:35PM, Neil Bothwick wrote:
> On Sun, 23 Oct 2022 07:29:42 -0400, Dex Conner wrote:
>
> > Unfortunately I had already followed that guide for going module-less
> > and the rc service called modules is still running. I have found that it
> > is the /etc/init.d/modules file which sources some folders including
> > /usr/lib/modules-load.d which has a module in it. I think this module
> > (pkcs8_key_parser) gets created after I update iwd. Is there a way to
> > actually remove the modules service instead of removing the modules from
> > the directories repeatedly?
>
> You could blacklist the module in /etc/modules.d, but will iwd still work
> without it?
That seems like a good idea but since I don't have modprobe after
setting -kmod, it throws an error. I think I should get some sort of
hook working after each iwd update so that the file is automatically
removed.
Thank you everyone
--
Dex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to disable the modules service?
2022-10-23 10:45 ` Peter Böhm
2022-10-23 11:29 ` Dex Conner
@ 2022-10-23 14:19 ` Dr Rainer Woitok
2022-10-23 15:04 ` Peter Böhm
1 sibling, 1 reply; 8+ messages in thread
From: Dr Rainer Woitok @ 2022-10-23 14:19 UTC (permalink / raw
To: gentoo-user, peter.bo
Peter,
On Sunday, 2022-10-23 12:45:42 +0200, you wrote:
> ...
> we have a wiki article for this:
> https://wiki.gentoo.org/wiki/Kernel_Modules#Going_completely_.22module-less.22
When I built my first Gentoo system in 2019, the Handbook instructed to
build anything sound related as modules, if I remember correctly. Is
this no longer true?
Sincerely,
Rainer
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] How to disable the modules service?
2022-10-23 14:19 ` Dr Rainer Woitok
@ 2022-10-23 15:04 ` Peter Böhm
0 siblings, 0 replies; 8+ messages in thread
From: Peter Böhm @ 2022-10-23 15:04 UTC (permalink / raw
To: gentoo-user
Rainer,
the handbook still recommends to build sound modules (and many many others) as
module, because it is easier than doing a static configuration. Now, you can
ask, why someone wants to build it static into the kernel. The answer is:
Security !
Maybe you know this wiki article:
https://wiki.gentoo.org/wiki/Signed_kernel_module_support
This is a pre-condition for enabling LOCKDOWN in the kernel ... OR ... you
have NO modules support (=monolithic kernel) ! So, you have the choice which
way you want to go.
I am using a monolithic kernel also. Dont try to enable lockdown in your
kernel if you use unsigned modules. ;-) I wrote a big warning in my wiki
article:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/
Kernel_Hardening_with_KSPP
Regards,
Peter
Am Sonntag, 23. Oktober 2022, 16:19:49 CEST schrieb Dr Rainer Woitok:
> Peter,
>
> On Sunday, 2022-10-23 12:45:42 +0200, you wrote:
> > ...
> > we have a wiki article for this:
> > https://wiki.gentoo.org/wiki/Kernel_Modules#Going_completely_.22module-les
> > s.22
> When I built my first Gentoo system in 2019, the Handbook instructed to
> build anything sound related as modules, if I remember correctly. Is
> this no longer true?
>
> Sincerely,
> Rainer
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-10-24 5:58 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-23 9:56 [gentoo-user] How to disable the modules service? Dex Conner
2022-10-23 10:45 ` Peter Böhm
2022-10-23 11:29 ` Dex Conner
2022-10-23 11:42 ` Dale
2022-10-23 15:35 ` Neil Bothwick
2022-10-24 5:58 ` Dex Conner
2022-10-23 14:19 ` Dr Rainer Woitok
2022-10-23 15:04 ` Peter Böhm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox