You are not logged in.

#1 2024-04-29 18:59:48

gcb
Member
Registered: 2014-02-12
Posts: 130

[SOLVED] Removing modules from initfs?

is it possible to REMOVE modules from autodetection on mkinitcpio?

I am following this line of reasoning https://hansdegoede.dreamwidth.org/28291.html and want to remove amdgpu from my initfs.

I didn't want to jump into dracut just now sad

I tried the obvious: unload the module before autodetection. but it doesn't do what i thought.

# mkinitcpio -M | grep thunder
thunderbolt
(i don't want to unload my display driver :)
# rmmod thunderbolt
# lsmod | grep thunderbolt
(nothing)
# mkinitcpio -M | grep thunder
thunderbolt

Last edited by gcb (2024-04-30 09:11:26)

Offline

#2 2024-04-29 19:51:45

gcb
Member
Registered: 2014-02-12
Posts: 130

Re: [SOLVED] Removing modules from initfs?

this https://blog.falconindy.com/articles/op … tcpio.html makes me believe that just removing hooks will solve the autodetection hook, but the wiki implies this actually reduces the list "Shrinks your initramfs to a smaller size by creating a whitelist of modules from a scan of sysfs."

Offline

#3 2024-04-29 21:08:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,636

Re: [SOLVED] Removing modules from initfs?

Autodetect has nothing at all to do with your question. It removes modules not in use, that's all. It's the OTHER hooks that add the modules, take a look at the mkinitcpio wiki page to see what they all do, it should be pretty obvious what you want.

Last edited by Scimmia (2024-04-29 21:16:07)

Offline

#4 2024-04-30 08:57:47

gcb
Member
Registered: 2014-02-12
Posts: 130

Re: [SOLVED] Removing modules from initfs?

indeed. `kms` hook does include it.

My main confusion was that while adding and removing kms hook, I was looking into logs, not cpio files.

But now it is even worse... I get the exact same log messages about amdgpu and drm being loaded at 2s into boot, before i even have root mounted! How the module loads without the module available?

...I don't know how to check compiled module into vmlinuz, but i think the changes are low amdgpu is there.

Offline

#5 2024-04-30 15:04:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,636

Re: [SOLVED] Removing modules from initfs?

Post that log

Offline

Board footer

Powered by FluxBB