You are not logged in.

#1 2010-07-13 19:51:38

fturco
Member
Registered: 2010-07-12
Posts: 40

kernel with modules disabled

hello, i'm new to archlinux but not to linux. with other distributions, i have always been able to manually compile a kernel with modules disabled. archlinux, of course, let me do this, but at boot time i get a "no such file or directory" error because of the missing "modules.dep" file. is there a way to avoid this error? thanks.

Offline

#2 2010-07-13 19:53:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: kernel with modules disabled

fturco wrote:

hello, i'm new to archlinux but not to linux. with other distributions, i have always been able to manually compile a kernel with modules disabled. archlinux, of course, let me do this, but at boot time i get a "no such file or directory" error because of the missing "modules.dep" file. is there a way to avoid this error? thanks.

yes. run depmod -a


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-07-13 20:15:57

fturco
Member
Registered: 2010-07-12
Posts: 40

Re: kernel with modules disabled

i tried with creating the "/lib/modules/2.6.34.1" directory and then running "depmod -a" as you said. no errors now. but i still wonder if there is a better way to accomplish this, that is, by disabling the check at all. is there a boot script to configure or disable perhaps?

Offline

#4 2010-07-13 20:24:57

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: kernel with modules disabled

why /lib/modules/2.6.34.1 when uname -r returns 2.6.34-ARCH ?


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-07-13 20:27:10

fturco
Member
Registered: 2010-07-12
Posts: 40

Re: kernel with modules disabled

in my case "uname -r" returns 2.6.34.1. as i said in the first post, i manually compiled the latest available kernel, because it's the procedure i'm used to.

Offline

#6 2010-07-13 21:44:01

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: kernel with modules disabled

$ grep depmod /etc/rc* 2> /dev/null 
/etc/rc.sysinit:status "Updating Module Dependencies" /sbin/depmod -A

Since it happens during the boot routine, you should check the scripts that take care of it.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2010-07-14 06:59:33

fturco
Member
Registered: 2010-07-12
Posts: 40

Re: kernel with modules disabled

the question now is: can i edit "/etc/rc.sysinit" safely by commenting out the "depmod" line? will my edit be undo when package "core/initscripts" is reinstalled? the best thing in my opinion would be a separate configuration file for "/etc/rc.sysinit" where you can specify if the kernel modules are disabled or not.

Offline

#8 2010-07-14 08:34:11

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: kernel with modules disabled

I don't see what use there is for a kernel that does not support modules, except for security reasons maybe. Of course your edit will be undone upon upgrade. I suggest you open a feature request on the bugtracker to see how the devs feel about your suggestion.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2010-07-14 09:42:08

fturco
Member
Registered: 2010-07-12
Posts: 40

Re: kernel with modules disabled

i opened it. please see http://bugs.archlinux.org/task/20174 .

Offline

#10 2010-07-14 14:32:23

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: kernel with modules disabled

Of course your edit will be undone upon upgrade.

nope
see man pacman.conf NoUpgrade

@fturco
you can safely disable depmod in rc.sysinit (even if you have modular kernel - simply remember what this implies)

whole point of keeping it there is that often users need to install new modules and have no idea that they need to run depmod, so instead when they complain, kernel reboot is suggested (although running depmod would do).
I assume that any feature requesting removal of depmod from rc.sysinit will be rejected, which is quite reasonable.

Offline

#11 2010-07-14 17:06:22

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: kernel with modules disabled

broch wrote:

Of course your edit will be undone upon upgrade.

nope
see man pacman.conf NoUpgrade

That feature is intended for configuration files afaik. Of course you can use it 'creatively' but I think that's an ugly solution, far worse than manually editing rc.sysinit after every upgrade. The init scripts are a package, if you keep version X of a script and version Y of all others, nobody can tell what will happen. I surely wouldn't want it - not for something as critical as the boot process.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#12 2010-07-14 19:40:50

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: kernel with modules disabled

shrug,

nobody can tell what will happen

this is true for any upgrade. However because in practice because no revolutionary changes are happening. pacman option is safe.

Offline

Board footer

Powered by FluxBB