Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
einit and iptables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
0000000000000
Apprentice
Apprentice


Joined: 21 Mar 2008
Posts: 163

PostPosted: Sun Aug 03, 2008 6:56 am    Post subject: einit and iptables Reply with quote

I have recently started using einit and it is working great aside from starting iptables.

/etc/einit/conf.d/iptables.xml
Code:
<einit prefix="configuration-services">
  <!-- For ip6tables use the ip6tables module, the configuration is done from here-->
   <iptables save_on_stop="no"
   rules_file="/etc/iptables.rules"
       options="-c" />
</einit>


Why might it tell me the iptables service is broken?

excerpt from local.xml
Code:
   <iptables group="iptables" seq="all" />


excerpt from modes.xml
Code:
 <mode id="default" base="boot">

<enable services="audio:tor:iptables:hal:logger:networkmanager:acpid:dhcdbd:local:displaymanager" />



thanks



also, is there anyway to get a splash working in einit? I know it would only be visible for about 6 seconds, but still...
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sun Aug 03, 2008 12:46 pm    Post subject: Reply with quote

just use sys-apps/baselayout-2.0.0 and sys-apps/openrc.
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Mon Aug 04, 2008 12:33 am    Post subject: Reply with quote

I think you'll want to remove this line from your local.xml:
Code:
     <iptables group="iptables" seq="all" />

this is certain to introduce a looping dependency ;), and thus a broken service.

the actual code that is used for the iptables service is in '/lib/einit/modules-xml/iptables.xml', if you want to check it for errors.

EDIT: oh yeah i forgot, i think the 0.40.0 release might have had splash support for some splash systems, but not fbsplash (the default on gentoo). not sure if it was in the release or not though... and we're currently redesigning from scratch under a different name, so not too many updates next month either.
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )


Last edited by mdeininger on Mon Aug 04, 2008 1:07 am; edited 1 time in total
Back to top
View user's profile Send private message
0000000000000
Apprentice
Apprentice


Joined: 21 Mar 2008
Posts: 163

PostPosted: Mon Aug 04, 2008 1:06 am    Post subject: Reply with quote

alex.blackbit wrote:
just use sys-apps/baselayout-2.0.0 and sys-apps/openrc.
the reason i switched to einit is because it is very fast (takes about 5-6 seconds to boot after kernel starts)
thanks though

mdeininger: but i still need "iptables" in modes.xml, right? It will work fine despite there being no reference to it in local.xml?
or should i just get rid of the "seq="all""

thanks
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Mon Aug 04, 2008 1:11 am    Post subject: Reply with quote

0000000000000 wrote:
alex.blackbit wrote:
just use sys-apps/baselayout-2.0.0 and sys-apps/openrc.
the reason i switched to einit is because it is very fast (takes about 5-6 seconds to boot after kernel starts)
thanks though

mdeininger: but i still need "iptables" in modes.xml, right? It will work fine despite there being no reference to it in local.xml?
or should i just get rid of the "seq="all""

thanks
yep, you don't need a reference in local.xml for anything. problem is if you add a group, it makes a special service... so you'll end up with the service iptables twice, one of them pointing at itself, which would never work, so it gets maked as broken. removing that line in local.xml will help.
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
0000000000000
Apprentice
Apprentice


Joined: 21 Mar 2008
Posts: 163

PostPosted: Mon Aug 04, 2008 1:26 am    Post subject: Reply with quote

ok thanks a lot

will reboot in a moment and mark as solved should all go well
Back to top
View user's profile Send private message
0000000000000
Apprentice
Apprentice


Joined: 21 Mar 2008
Posts: 163

PostPosted: Mon Aug 04, 2008 1:45 am    Post subject: Reply with quote

still says its broken...


i also just noticed my sound has stopped working

i could have sworn it was working fine the other day...


sound is fine again, for some reason i needed to run alsaconf again...


Last edited by 0000000000000 on Mon Aug 04, 2008 1:49 am; edited 1 time in total
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Mon Aug 04, 2008 1:48 am    Post subject: Reply with quote

well, anything odd in the einit --wtf? a pastebin would be nice.

damn i should never have let ryan split up all the files over the fs like that, getting insight into the config sucks atm, heh.
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
0000000000000
Apprentice
Apprentice


Joined: 21 Mar 2008
Posts: 163

PostPosted: Mon Aug 04, 2008 1:53 am    Post subject: Reply with quote

Code:
Collective borg # einit --wtf
No issues found.


local.xml

modes.xml

by the way, if you didnt see the edit, i got sound working by re-running alsaconf (though it got stuck on "starting alsasound" so i pressed ctrl+c and it seems to have worked anyway...) not sure why i had to run alsaconf again though, hope i dont need to run it everytime now or something...


thanks
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Mon Aug 04, 2008 2:22 pm    Post subject: Reply with quote

looking good... could you see if the 'einit-log' programme has useful output? :)
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
0000000000000
Apprentice
Apprentice


Joined: 21 Mar 2008
Posts: 163

PostPosted: Tue Aug 05, 2008 6:43 am    Post subject: Reply with quote

I tried manually looking at the "log" /var/log/einit.log, but no such file exists, but in any case I managed to solve the issue by actually editing /lib/einit/modules-xml/iptables.xml to point to my iptables rules file as opposed to " ${configuration_services_iptables_options} &lt; ${configuration_services_iptables_rules_file} " which had been in that file, now all is well (sound is also working fine, seems i needed to add alsa in addition to alsasound in order to retain mixer settings..)

thanks

now we just need a nice little splash image ;)
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Wed Aug 06, 2008 12:34 am    Post subject: Reply with quote

hehe, good point... well with log i meant the actual application 'einit-log' (einit keeps a log of what happened in memory, and this programme is used to retrieve this log ;)).

glad it works now, must've been some quirk in the module file :D.

yeah the splash image could help... there's an effort for a complete rewrite, including a redesign under the name 'kyuba', and splash compatibility is part of the required features :D.
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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