You are not logged in.

#1 2012-02-04 07:21:52

dabbi2000
Member
From: Reykjavik, Iceland
Registered: 2011-09-28
Posts: 119
Website

Optimizing mkinitcpio, can you help me understand hooks vs modules

Is it my correct understanding of mkinitcpio that
1) MODULES are loaded realtime and I can change these from /etc/mkinitcpio.conf without rebuilding the ramfs image?
2) while HOOKS definition is used while building the image and thus needs rebuilding if changed?

I want to minimize kernel modules loaded on startup, for that I should remove everything from hooks and manually put all modules needed in the MODULES array?


Any guides appreciated, didn't quite get it with the wiki :-/

Offline

#2 2012-02-04 20:30:50

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: Optimizing mkinitcpio, can you help me understand hooks vs modules

dabbi2000 wrote:

Any guides appreciated, didn't quite get it with the wiki :-/

So you didn't see this when you searched the wiki, with the search bar on the side of the page?

Offline

#3 2012-02-04 21:02:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Optimizing mkinitcpio, can you help me understand hooks vs modules

My guess is he found it, but didn't understand (or 'get') it.

dabbi2000 - any changes to mkinitcpio.conf are only applied when you rebuild the image.

Offline

#4 2012-02-08 22:19:50

dabbi2000
Member
From: Reykjavik, Iceland
Registered: 2011-09-28
Posts: 119
Website

Re: Optimizing mkinitcpio, can you help me understand hooks vs modules

/dev/zero   and I am convincing all my friends that the Linux support forums are welcoming and friendly, what a great example you give!

thx to the rest, I am not getting it 100% but slowly melting in though. I just didn't understand why the ramfs image file wouldn't shrink when I blacklisted about 15 modules, amongst them some of the "core modules"

I'll read on and do some more testin

Offline

#5 2012-02-08 22:30:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Optimizing mkinitcpio, can you help me understand hooks vs modules

Have you read http://blog.falconindy.com/articles/opt … tcpio.html ?
Post your configs if you want us to help more.

Offline

Board footer

Powered by FluxBB