You are not logged in.
Pages: 1
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
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
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
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
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
Post that log
Offline
Pages: 1