Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527522 - sys-apps/busybox: updated mdev init script
Summary: sys-apps/busybox: updated mdev init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 530688
  Show dependency tree
 
Reported: 2014-10-30 21:40 UTC by William Hubbs
Modified: 2014-12-30 19:15 UTC (History)
0 users

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


Attachments
mdev.initd (mdev.initd,1.83 KB, text/plain)
2014-10-30 21:57 UTC, William Hubbs
Details
mdev.initd (mdev.initd,976 bytes, text/plain)
2014-11-20 18:36 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 2014-10-30 21:40:46 UTC
The attached init script for mdev should be used with >=OpenRC-0.13.
devfs is taking over the function of mounting the /dev directory, so
mdev and udev/eudev do not need to do that any longer.

Thanks,

William
Comment 1 William Hubbs gentoo-dev 2014-10-30 21:47:52 UTC
I'll get the attachment up shortly; I found an issue with pybugz...
Comment 2 William Hubbs gentoo-dev 2014-10-30 21:57:27 UTC
Created attachment 387826 [details]
mdev.initd

This is the new mdev init script.
Comment 3 SpanKY gentoo-dev 2014-11-05 21:09:04 UTC
mdev provides more than just /dev mounting, so the devtmpfs check doesn't make sense here

why doesn't devfs also set up /dev/std{in,err,out} and /dev/fd ?
Comment 4 William Hubbs gentoo-dev 2014-11-16 01:26:43 UTC
(In reply to SpanKY from comment #3)
> mdev provides more than just /dev mounting, so the devtmpfs check doesn't
> make sense here

I put that check in because I was told that mdev and devtmpfs are not compatible. Is this not correct?

> why doesn't devfs also set up /dev/std{in,err,out} and /dev/fd ?

No particular reason; I was never made aware that it needs to. Also, these exist on my system, so I wonder what is setting them up?
Comment 5 SpanKY gentoo-dev 2014-11-20 03:02:33 UTC
(In reply to William Hubbs from comment #4)

saying mdev doesn't work with devtmpfs is like saying udev doesn't work with it.  udev still creates random files in /dev as things come & go, and so does mdev.

last i looked, udev itself has /dev/std{in,err,out} and /dev/fd hardcoded in its source tree.  so we can either have every non-udev system also set them up, or we can have the common openrc script create them.  i don't feel strongly either way.
Comment 6 William Hubbs gentoo-dev 2014-11-20 15:28:28 UTC
(In reply to SpanKY from comment #5)
> (In reply to William Hubbs from comment #4)
> 
> saying mdev doesn't work with devtmpfs is like saying udev doesn't work with
> it.  udev still creates random files in /dev as things come & go, and so
> does mdev.

Ok, Ican update the mdev init script to not abort if /dev is devtmpfs.

> last i looked, udev itself has /dev/std{in,err,out} and /dev/fd hardcoded in
> its source tree.  so we can either have every non-udev system also set them
> up, or we can have the common openrc script create them.  i don't feel
> strongly either way.

In that case, I can have devfs set them up; those definitely should be there for any system.
Comment 7 William Hubbs gentoo-dev 2014-11-20 18:36:42 UTC
Created attachment 389912 [details]
mdev.initd

Here is the newest version of the mdev init script.

Also, devfs in openrc-0.13.5 now populates
/dev/{fd,std{in,out,err},core}, so you will need at least that version
of OpenRC to work with this mdev script.
Comment 8 William Hubbs gentoo-dev 2014-12-30 19:15:27 UTC
I fixed this in busybox-1.23.0.