View previous topic :: View next topic |
Author |
Message |
sori n00b
Joined: 25 Jul 2005 Posts: 8
|
Posted: Mon Jul 25, 2005 1:19 pm Post subject: /etc/modprobe.conf is cleared by reboot |
|
|
Hi.
Since one day, I've found that the modules like ide-cd are not loaded and I've been getting the message 'could not detect custom ALSA settings' too.
And finally I discovered that /etc/modprobe.conf is reset to following state every time I reboot the system.
Code: | ### This file is automatically generated by modules-update
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at /etc/modules.conf and read
# the manpage for modules-update.
#
(EOF) |
When I do 'modules-update', the file modprobe.conf is correctly made. But of course it doesn't do anything because the file is reset if I reboot. (I think the resetting happens before or while the boot services are starting)
Please help!
Last edited by sori on Thu Jul 28, 2005 10:08 am; edited 1 time in total |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Mon Jul 25, 2005 3:16 pm Post subject: |
|
|
Moved from Installing Gentoo to Kernel & Hardware. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
sori n00b
Joined: 25 Jul 2005 Posts: 8
|
Posted: Thu Jul 28, 2005 8:01 am Post subject: |
|
|
I'm still having the problem... can anyone help me? |
|
Back to top |
|
|
Raistlin l33t
Joined: 17 May 2004 Posts: 691 Location: Boston, MA
|
Posted: Thu Jul 28, 2005 9:54 am Post subject: |
|
|
Hi,
sounds weird
maybe a list of the services that get started would be helpful...
cheers, r. _________________ Zwei Was Eins Initially
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." |
|
Back to top |
|
|
sori n00b
Joined: 25 Jul 2005 Posts: 8
|
Posted: Thu Jul 28, 2005 10:13 am Post subject: |
|
|
Thank you for the reply.
Raistlin wrote: | maybe a list of the services that get started would be helpful... |
These are the services that get started.
Code: | # rc-update -s | egrep '(boot)|(default)'
acpid | default
alsasound | boot
apache2 | default
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
cupsd | default
domainname | default
esound | default
hald | default
hostname | boot
hotplug | default
iptables | default
keymaps | boot
lm_sensors | default
local | default nonetwork
localmount | boot
modules | boot
mysql | default
net.eth0 | default
net.lo | boot
netmount | default
numlock | default
rmnologin | boot
samba | default
serial | boot
splash | default
sysklogd | default
urandom | boot
vixie-cron | default
vmware | default
vsftpd | default
xfs | default |
Now I'm trying to find out when exactly the reset happens... |
|
Back to top |
|
|
sori n00b
Joined: 25 Jul 2005 Posts: 8
|
Posted: Thu Jul 28, 2005 12:31 pm Post subject: |
|
|
I've just found when the file modprobe.conf is reset.
(I let the init scripts make backups of modprobe.conf overal to discover it )
Code: | <in /etc/init.d/modules>
<in start()>
if [ -z "${CDBOOT}" ] && touch /etc/modules.conf 2> /dev/null
then
ebegin "Calculating module dependencies"
[color=red]/sbin/modules-update &>/dev/null[/color]
eend $? "Failed to calculate module dependencies"
fi |
While this /etc/init.d/modules is being executed at boot, the red command resets the file.
So if I delete the lines that I quoted from the init script, modprobe.conf is not reset any more.
But I don't know if I can call this a solution, and why modules-update clears modprobe.conf while boot although it works well (makes correct modprobe.conf) after boot.
Anyone have an idea why my modules-update behaves so strange? |
|
Back to top |
|
|
|