Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76635 - bootmisc starts sysctl early in the boot process. "unknown key" problem.
Summary: bootmisc starts sysctl early in the boot process. "unknown key" problem.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-04 06:58 UTC by Andrea Carpani
Modified: 2005-01-30 12:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Carpani 2005-01-04 06:58:45 UTC
/etc/init.d/bootmisc starts sysctl at an early stage of the boot process and at that time some keys are not yet available.
In my case I had to set 
net.ipv4.conf.lo.arp_ignore=1
but net.ipv4.conf.lo is not available before loopback.

I solved this particular issue by adding the same code from bootmisc to local.start:

if [ -e /etc/sysctl.conf ]
then
        ebegin "Configuring kernel parameters"
        /sbin/sysctl -p /etc/sysctl.conf &>/dev/null
        eend 0
fi

Maybe this calls for an extra init script?

Reproducible: Always
Steps to Reproduce:
1. put 
net.ipv4.conf.lo.arp_ignore=1
in /etc/sysctl.conf
2. reboot
3. check "sysctl net.ipv4.conf.lo.arp_ignore"


Actual Results:  
root # sysctl net.ipv4.conf.lo.arp_ignore
net.ipv4.conf.lo.arp_ignore = 0


Expected Results:  

root # sysctl net.ipv4.conf.lo.arp_ignore
net.ipv4.conf.lo.arp_ignore = 1
Comment 1 SpanKY gentoo-dev 2005-01-30 12:13:52 UTC
add said modules to your modules.autoload files or build the drivers into your kernel