>=sys-apps/baselayout-2.0.0_alpha2 no longer directly initialises the volume addons located in /lib/rcscripts/addons. The solution is to provide an initscript to be run at boot that starts the raid addon. Further background info in bugs #177100 and #175983.
Created attachment 118774 [details] raid initscript for baselayout-2 Had to add lvm to `before', else lvm would try to start before all the raid arrays were initialised. Presumably this would be the same for other volume addons like evms?
(In reply to comment #1) > > Had to add lvm to `before', else lvm would try to start before all the raid > arrays were initialised. Presumably this would be the same for other volume > addons like evms? > Or document RC_USE="raid" to conf.d/lvm
Right, the volume init scripts should not depend on each other in the script. At most provide defaults via RC_USE/RC_NEED/RC_BEFORE/RC_AFTER so the user can decide the correct order.
(In reply to comment #3)V > Right, the volume init scripts should not depend on each other in the script. > At most provide defaults via RC_USE/RC_NEED/RC_BEFORE/RC_AFTER so the user can > decide the correct order. How does VOLUME_ORDER from conf.d/volumes relate to this? It appears to define an order in which the addons are started, yet I cannot see where this is sourced during init.
(In reply to comment #4) > How does VOLUME_ORDER from conf.d/volumes relate to this? It appears to define > an order in which the addons are started, yet I cannot see where this is > sourced during init. It doesn't. volumes init and conf files no longer exist.
Just upgraded to baselayout-2.0.0-rc2-r1 and ran into this myself. Worked around it temporarily with md= additions to the the kernel command line. Now that I'm up and running again, I was able to find this bug and simply copied the lvm script to mdraid. Suggestion: The attachment here is called "raid". Given the various kinds of raid, that's ambiguous. mdraid should be suitably more descriptive, IMO. Question: The attachment here is slightly different than the existing lvm initscript (in rc2-r1). Which style is current?
(In reply to comment #6) > Suggestion: The attachment here is called "raid". Given the various kinds > of raid, that's ambiguous. mdraid should be suitably more descriptive, IMO. Of course, as I quickly discovered, as currently written with the ${SVCNAME} placeholder, the addon script and the initscript must have the same name. <doh> Still, mdraid for both seems appropriate.
mdadm-2.6.3-r1 in the tree with this fix.