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

Bug 434774

Summary: net-firewall/iptables-1.4.13_ init script lacks dependency "need localmount"
Product: Gentoo Linux Reporter: Marc Schiffbauer <mschiff>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marc Schiffbauer gentoo-dev 2012-09-11 23:36:39 UTC
I have /var on a seperate FS and want to start iptables in level boot.

iptables has "before net" and net has "need localmount"

Without adding "need localmount" to iptable as well rc could not restore my rules
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2012-09-14 18:02:12 UTC
FYI, You can set your rules to be stores elsewhere than /var via /etc/conf.d/iptables

The default path of /var/lib/iptables/rules-save is actually rather arbitrary...
Comment 2 Marc Schiffbauer gentoo-dev 2012-09-14 22:40:22 UTC
Yes, sure, but somewhere in /var is the right place from a FHS POV and my suggested fix works just fine, so why not just apply it so the default setting works for users which have a seperate /var (which should be all users with a proper setup system btw...)
Comment 3 SpanKY gentoo-dev 2013-04-27 09:42:55 UTC
should be all set now in the tree; thanks for the report!

Commit message: Have init.d depend on localmount for /var state
http://sources.gentoo.org/net-firewall/iptables/files/iptables-1.4.13-r1.init?r1=1.1&r2=1.2