Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302171 - sys-apps/busybox needs a mdev init.d script for openrc
Summary: sys-apps/busybox needs a mdev init.d script for openrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 295613
  Show dependency tree
 
Reported: 2010-01-25 14:20 UTC by William Hubbs
Modified: 2010-08-15 03:55 UTC (History)
3 users (show)

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


Attachments
mdev.initd (mdev.initd,2.72 KB, text/plain)
2010-01-28 17:54 UTC, William Hubbs
Details

Note You need to log in before you can comment on or make changes to this bug.
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