Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 76635

Summary: bootmisc starts sysctl early in the boot process. "unknown key" problem.
Product: Gentoo Linux Reporter: Andrea Carpani <ml>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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