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

Bug 302171

Summary: sys-apps/busybox needs a mdev init.d script for openrc
Product: Gentoo Linux Reporter: William Hubbs <williamh>
Component: New packagesAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: normal CC: axiator, binki, esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 295613    
Attachments: mdev.initd

Description William Hubbs gentoo-dev 2010-01-25 14:20:48 UTC
All,

currently busybox installs a baselayout-1 compatible addon,
mdev-start.sh, with no way to run it under openrc.

Before openrc can go stable, we need a startup script for busybox.

Thanks,

William
Comment 1 William Hubbs gentoo-dev 2010-01-28 17:54:23 UTC
Created attachment 217750 [details]
mdev.initd

All,

here is the beginning of an init script.  The dependencies still need to
be written, then this can be tested and committed to the tree with a
revbump of the ebuild.

In the revbump, I would suggest using has_version to determine whether
to install the addon or the init script.

Thanks,

William
Comment 2 William Hubbs gentoo-dev 2010-01-28 21:36:42 UTC
(In reply to comment #1)
> In the revbump, I would suggest using has_version to determine whether
> to install the addon or the init script.

To clearify this point, if the user has baselayout-2 installed, there is no need to install the addon.  Also, in this case, you might want to use ewarn to let the user know that the mdev script needs to be added to the appropriate runlevel.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2010-01-29 19:34:35 UTC
(In reply to comment #1)
> 
> In the revbump, I would suggest using has_version to determine whether
> to install the addon or the init script.
>

Install both like every other package does with an addon. Otherwise the user will have to figure out "oh yeah I just upgraded to baselayout, I need to re-emerge this package to get an initscript." Just add a check in the initscript (like all the others) saying its only for bl-2.
Comment 4 William Hubbs gentoo-dev 2010-01-29 22:48:45 UTC
(In reply to comment #3)
> Install both like every other package does with an addon. Otherwise the user
> will have to figure out "oh yeah I just upgraded to baselayout, I need to
> re-emerge this package to get an initscript." Just add a check in the
> initscript (like all the others) saying its only for bl-2.

Yes, this would be the best way to handle this situation. :-)

Comment 5 solar (RETIRED) gentoo-dev 2010-01-29 23:29:02 UTC
Vapier,
As you wrote the initial mdev addon code. Can you review this and see if it's suitable for inclusion in the next bb? 

Thanks in advance.
Comment 6 William Hubbs gentoo-dev 2010-08-09 16:04:51 UTC
All,

what is the progress on this bug?  We need it since it is a blocker for openrc stabilization.

Thanks,

William

Comment 7 SpanKY gentoo-dev 2010-08-15 03:55:41 UTC
i slapped together a simple one that just sources the mdev start script