List Info

Thread: RE: Could not load modules.dep




RE: Could not load modules.dep
country flaguser name
Portugal
2007-05-10 10:59:56
See below some feedback on the suggestions given:

> -----Mensagem original-----
> De: Igor Novgorodov [mailto:igornovg.net] 
> Enviada: quinta-feira, 10 de Maio de 2007 14:10
> Para: Clemente Aguiar
> Assunto: Re: [gentoo-hardened] Could not load
modules.dep
> 
> > Since a while ago I have been getting a series of
errors at 
> start-up 
> > on my servers, such as:
> 
> > "FATAL: Could not load
> > /lib/modules/kernel-hardened-2.18-r6/modules.dep:
> > No such file or directory"
> 
> > I configured my hardened kernels with
"loadable module support" 
> > disabled, so I think that modules.dep could never
exist.
> 
> > First of all, I can see these messages
"fly" by the console at 
> > start-up, but it seems that they are not logged (I
can't find them 
> > anywhere). Shouldn't they get logged somewhere?
> You can try setting RC_BOOTLOG="yes" in
/etc/conf.d/rc
> Messages will be logged to /var/log/boot.msg

I did as suggested and emerged
"app-admin/showconsole" as well (it is a
requirement for this to work), and most boot messages where
logged in
/varlog/boot.msg, but not all, and the ones I mentioned
where NOT
logged.



> > Second, how can I get rid of the messages
altogether?
> Just do "rc-update del modules" to remove
module init script 
> from startup
> 

I did as you suggested, but when I rebooted, a warning was
issued and
"modules" init script was automatically added back
to "boot".

Any other suggestions?

Clemente
--
gentoo-hardenedgentoo.org mailing list


RE: Could not load modules.dep
country flaguser name
United States
2007-05-11 02:11:24
Don't mess with your scripts... Never know when it
will break something... As root, simply:

touch /lib/modules/kernel-hardened-2.18-r6/modules.dep

Problem solves, and no config/script file tinkering!

It's been working perfectly for me for months.

Charles

--- Clemente Aguiar
<clemente.aguiarmadeiratecnopolo.pt> wrote:

> 
> See below some feedback on the suggestions given:
> 
> > -----Mensagem original-----
> > De: Igor Novgorodov [mailto:igornovg.net]

> > Enviada: quinta-feira, 10 de Maio de 2007 14:10
> > Para: Clemente Aguiar
> > Assunto: Re: [gentoo-hardened] Could not load
> modules.dep
> > 
> > > Since a while ago I have been getting a
series
> of errors at 
> > start-up 
> > > on my servers, such as:
> > 
> > > "FATAL: Could not load
> > >
> /lib/modules/kernel-hardened-2.18-r6/modules.dep:
> > > No such file or directory"
> > 
> > > I configured my hardened kernels with
"loadable
> module support" 
> > > disabled, so I think that modules.dep could
> never exist.
> > 
> > > First of all, I can see these messages
"fly" by
> the console at 
> > > start-up, but it seems that they are not
logged
> (I can't find them 
> > > anywhere). Shouldn't they get logged
somewhere?
> > You can try setting RC_BOOTLOG="yes" in
> /etc/conf.d/rc
> > Messages will be logged to /var/log/boot.msg
> 
> I did as suggested and emerged
> "app-admin/showconsole" as well (it is a
> requirement for this to work), and most boot
> messages where logged in
> /varlog/boot.msg, but not all, and the ones I
> mentioned where NOT
> logged.
> 
> 
> 
> > > Second, how can I get rid of the messages
> altogether?
> > Just do "rc-update del modules" to
remove module
> init script 
> > from startup
> > 
> 
> I did as you suggested, but when I rebooted, a
> warning was issued and
> "modules" init script was automatically added
back
> to "boot".
> 
> Any other suggestions?
> 
> Clemente
> --
> gentoo-hardenedgentoo.org mailing list
> 
> 

-- 
gentoo-hardenedgentoo.org mailing list


RE: Could not load modules.dep
country flaguser name
Canada
2007-05-15 09:11:34
We were getting similar messages on a recently built machine
including a
"FATAL:  Could not load System.Map:  Missing....."
right after a message
about loading modules.dep.  Didn't seem to affect proper
function at all,
but any error is bothersome to me, so...

This was fully resolved by the following set of commands:

# env-update && source /etc/profile 
# modules-update 
# reboot

Not sure if this issue is entirely similar... seems related
though.

-D

> -----Original Message-----
> From: Charles Taylor [mailto:securitytinnov.net]
> Sent: May 11, 2007 3:11 AM
> To: gentoo-hardenedlists.gentoo.org
> Subject: RE: [gentoo-hardened] Could not load
modules.dep
> 
> Don't mess with your scripts... Never know when it
> will break something... As root, simply:
> 
> touch /lib/modules/kernel-hardened-2.18-r6/modules.dep
> 
> Problem solves, and no config/script file tinkering!
> 
> It's been working perfectly for me for months.
> 
> Charles
> 
> --- Clemente Aguiar
> <clemente.aguiarmadeiratecnopolo.pt>
wrote:
> 
> >
> > See below some feedback on the suggestions given:
> >
> > > -----Mensagem original-----
> > > De: Igor Novgorodov [mailto:igornovg.net]
> > > Enviada: quinta-feira, 10 de Maio de 2007
14:10
> > > Para: Clemente Aguiar
> > > Assunto: Re: [gentoo-hardened] Could not
load
> > modules.dep
> > >
> > > > Since a while ago I have been getting a
series
> > of errors at
> > > start-up
> > > > on my servers, such as:
> > >
> > > > "FATAL: Could not load
> > > >
> > /lib/modules/kernel-hardened-2.18-r6/modules.dep:
> > > > No such file or directory"
> > >
> > > > I configured my hardened kernels with
"loadable
> > module support"
> > > > disabled, so I think that modules.dep
could
> > never exist.
> > >
> > > > First of all, I can see these messages
"fly" by
> > the console at
> > > > start-up, but it seems that they are not
logged
> > (I can't find them
> > > > anywhere). Shouldn't they get logged
somewhere?
> > > You can try setting
RC_BOOTLOG="yes" in
> > /etc/conf.d/rc
> > > Messages will be logged to /var/log/boot.msg
> >
> > I did as suggested and emerged
> > "app-admin/showconsole" as well (it is
a
> > requirement for this to work), and most boot
> > messages where logged in
> > /varlog/boot.msg, but not all, and the ones I
> > mentioned where NOT
> > logged.
> >
> >
> >
> > > > Second, how can I get rid of the
messages
> > altogether?
> > > Just do "rc-update del modules" to
remove module
> > init script
> > > from startup
> > >
> >
> > I did as you suggested, but when I rebooted, a
> > warning was issued and
> > "modules" init script was automatically
added back
> > to "boot".
> >
> > Any other suggestions?
> >
> > Clemente
> > --
> > gentoo-hardenedgentoo.org mailing list
> >
> >
> 
> --
> gentoo-hardenedgentoo.org mailing list

-- 
gentoo-hardenedgentoo.org mailing list


Re: Could not load modules.dep
user name
2007-05-15 18:15:55
The issue your raising is completely different than the one posted.
In your system you did compile support for modules, that's why the commands you've mentioned solved the problem. The original post is about a system in which modules support is disabled on purpose. In such a system modules-update will not help. In fact the script should not look for modules.dep since it is relevant for systems without modules support.

System.map is a file which is generated when compiling the kernel. It is specific to each kernel being compiled. AFAIK It has to reside in the boot partition in order for the kernel to find it while loading.

Asaf


On 5/15/07, Darren Smith < dsmithfaculty.ocad.ca">dsmithfaculty.ocad.ca> wrote:
We were getting similar messages on a recently built machine including a
"FATAL: &nbsp;Could not load System.Map: &nbsp;Missing....." right after a message
about loading modules.dep. &nbsp;Didn';t seem to affect proper function at all,
but any error is bothersome to me, so...

This was fully resolved by the following set of commands:

# env-update && source /etc/profile
# modules-update
# reboot

Not sure if this issue is entirely similar... seems related though.

-D

> -----Original Message-----
> From: Charles Taylor [mailto: securitytinnov.net">securitytinnov.net]
> Sent: May 11, 2007 3:11 AM
> To: gentoo-hardenedlists.gentoo.org"> gentoo-hardenedlists.gentoo.org
>; Subject: RE: [gentoo-hardened] Could not load modules.dep
>
> Don't mess with your scripts... Never know when it
> will break something... As root, simply:
>
> touch /lib/modules/kernel-hardened-2.18-r6/modules.dep
>
> Problem solves, and no config/script file tinkering!
>
> It's been working perfectly for me for months.
&gt;
> Charles
>
> --- Clemente Aguiar
>; < clemente.aguiarmadeiratecnopolo.pt">clemente.aguiarmadeiratecnopolo.pt&gt; wrote:
>;
> >
> > See below some feedback on the suggestions given:
&gt; >
> > > -----Mensagem original-----
> > > De: Igor Novgorodov [mailto: igornovg.net">igornovg.net]
> > > Enviada: quinta-feira, 10 de Maio de 2007 14:10
&gt; > > Para: Clemente Aguiar
>; > > Assunto: Re: [gentoo-hardened] Could not load
> > modules.dep
> > >
> > > > Since a while ago I have been getting a series
&gt; > of errors at
> > > start-up
&gt; > > > on my servers, such as:
> > >
> > > > "FATAL: Could not load
> > > >
> > /lib/modules/kernel- hardened-2.18-r6/modules.dep:
&gt; > > > No such file or directory&quot;
> > >
> > > > I configured my hardened kernels with "loadable
> > module support&quot;
> > > > disabled, so I think that modules.dep could
> > never exist.
>; > >
> > > > First of all, I can see these messages "fly&quot; by
> > the console at
> > > > start-up, but it seems that they are not logged
&gt; > (I can't find them
> > > > anywhere). Shouldn9;t they get logged somewhere?
> > > You can try setting RC_BOOTLOG="yes&quot; in
> > /etc/conf.d/rc
> > > Messages will be logged to /var/log/boot.msg
&gt; >
> > I did as suggested and emerged
&gt; > "app-admin/showconsole"; as well (it is a
> > requirement for this to work), and most boot
> > messages where logged in
> > /varlog/boot.msg, but not all, and the ones I
> > mentioned where NOT
> > logged.
&gt; >
> >
> >
> > > > Second, how can I get rid of the messages
&gt; > altogether?
> > > Just do "rc-update del modules&quot; to remove module
>; > init script
>; > > from startup
&gt; > >
> >
> > I did as you suggested, but when I rebooted, a
> > warning was issued and
> > "modules" init script was automatically added back
> > to "boot".
>; >
> > Any other suggestions?
> >
> > Clemente
> > --
> > gentoo-hardenedgentoo.org">gentoo-hardenedgentoo.org mailing list
> >
> >
>
> --
> gentoo-hardenedgentoo.org">gentoo-hardenedgentoo.org mailing list

--
gentoo-hardenedgentoo.org">gentoo-hardenedgentoo.org mailing list


Re: Could not load modules.dep
user name
2007-05-16 03:57:20
On 16/05/07, Asaf Gery <asaf.gerygmail.com> wrote:
>  System.map is a file which is generated when compiling
the kernel. It is
> specific to each kernel being compiled. AFAIK It has to
reside in the boot
> partition in order for the kernel to find it while
loading.

There is a really good explanation of system.map here:
http://www.dir
ac.org/linux/system.map/

It isn't needed on boot, it is used to resolve kernel
symbols for
debugging purposes. It can also help you regenerate a
modules.dep
(with depmod), so its purpose in /boot is purely for
recovery for the
standard user.

Thanks
Mark
-- 
gentoo-hardenedgentoo.org mailing list


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )