You are not logged in.
Pages: 1
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
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
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
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
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
$ 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
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
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
i opened it. please see http://bugs.archlinux.org/task/20174 .
Offline
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
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
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
Pages: 1