Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/modprobe.conf is cleared by reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sori
n00b
n00b


Joined: 25 Jul 2005
Posts: 8

PostPosted: Mon Jul 25, 2005 1:19 pm    Post subject: /etc/modprobe.conf is cleared by reboot Reply with quote

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
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Jul 25, 2005 3:16 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Kernel & Hardware.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
sori
n00b
n00b


Joined: 25 Jul 2005
Posts: 8

PostPosted: Thu Jul 28, 2005 8:01 am    Post subject: Reply with quote

I'm still having the problem... can anyone help me?
Back to top
View user's profile Send private message
Raistlin
l33t
l33t


Joined: 17 May 2004
Posts: 691
Location: Boston, MA

PostPosted: Thu Jul 28, 2005 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
sori
n00b
n00b


Joined: 25 Jul 2005
Posts: 8

PostPosted: Thu Jul 28, 2005 10:13 am    Post subject: Reply with quote

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
View user's profile Send private message
sori
n00b
n00b


Joined: 25 Jul 2005
Posts: 8

PostPosted: Thu Jul 28, 2005 12:31 pm    Post subject: Reply with quote

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 :x)

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum