Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291884 - sys-apps/openrc-0.5.2-r1: Plugins for pppd must be placed first in arguments list.
Summary: sys-apps/openrc-0.5.2-r1: Plugins for pppd must be placed first in arguments ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-04 18:22 UTC by Nao Nakashima
Modified: 2009-11-09 22:39 UTC (History)
2 users (show)

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


Attachments
Patch to fix order of plugin name.so stanzas. (openrc-pppd-move-plugins-to-top.patch,582 bytes, patch)
2009-11-04 18:25 UTC, Nao Nakashima
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nao Nakashima 2009-11-04 18:22:06 UTC
When configuration file like /etc/conf.d/net.ppp* contain options for pppd plugin (not for core pppd itself) interface failed to start.
This is because options for plugins must be placed after "plugin name.so" stanza when constructing "opts" arguments string.

Patch is trivial.

Bug also reported upstream. (http://roy.marples.name/projects/openrc/ticket/205)

Reproducible: Always

Steps to Reproduce:
1. Configure ppp interface using /etc/conf.d/net.ppp*.
2. Enable one of the pppd plugins (e.g. pppoe) in plugins_ppp*= section.
3. Try to specify some options (e.g rp_pppoe_ac) for this plugin in pppd_ppp*= section.
4. Try to start interface.

Actual Results:  
Interface failed to start because an "unknown" option.

Expected Results:  
openrc need to place all "plugin name.so" stanzas at the top of the pppd arguments list.
Comment 1 Nao Nakashima 2009-11-04 18:25:03 UTC
Created attachment 209249 [details, diff]
Patch to fix order of plugin name.so stanzas.
Comment 2 Nao Nakashima 2009-11-05 03:48:24 UTC
Bug fixed in upstream git: http://roy.marples.name/projects/openrc/changeset/4a892a23ba440a90d8a55f6d19d686917fd3e76e
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2009-11-09 22:39:56 UTC
When we've designed PPP support for baselayout (aka openrc nowadays), we decided to imbrincate plugin options within plugins_$iface parameter, right after the plugin name (e.g plugins_ppp0="pppoe rp_pppoe_ac ...") - see the pppoa plugin configuration in net.example.
Does this still works in the new openrc?