Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325707 - sys-fs/mdadm: mdraid uses addon code which is deprecated
Summary: sys-fs/mdadm: mdraid uses addon code which is deprecated
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 251730
  Show dependency tree
 
Reported: 2010-06-26 12:45 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2012-02-12 07:17 UTC (History)
2 users (show)

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


Attachments
/tmp/emerge--info (emerge--info,15.72 KB, text/plain)
2010-06-26 12:45 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2010-06-26 12:45:01 UTC
during boot:

 * Setting system clock using the hardware clock [UTC] ...                [ ok ]
 * Loading module radeon ...                                              [ ok ]
 * Autoloaded 1 module(s)
 *   mdraid uses addon code which is deprecated
 *   and may not be available in the future.
 * Setting up the Logical Volume Manager ...                              [ ok ]

No clue which ebuild owns this module. xen-source ?
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2010-06-26 12:45:34 UTC
Created attachment 236639 [details]
/tmp/emerge--info
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-07-01 15:25:23 UTC
I think it's /etc/init.d/mdraid from sys-fs/mdadm.
Comment 3 SpanKY gentoo-dev 2010-07-01 18:36:28 UTC
you're mixing stable & unstable
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2011-05-23 19:21:48 UTC
Looks like we should re-open this bug as openrc is stable, finally and it still uses deprecated addon code.

<snip>
_addon_warn()
{
	eindent
	ewarn "$RC_SVCNAME uses addon code which is deprecated"
	ewarn "and may not be available in the future."
	eoutdent
}

import_addon()
{
	if [ -e /@LIB@/rc/addons/"$1".sh ]; then
		_addon_warn
		. /@LIB@/rc/addons/"$1".sh
	elif [ -e /@LIB@/rcscripts/addons/"$1".sh ]; then
		_addon_warn
		. /@LIB@/rcscripts/addons/"$1".sh
	else
		return 1
	fi
}
</snip>

<snip>
# equery f mdadm
...
/lib64/rcscripts/addons/raid-start.sh
/lib64/rcscripts/addons/raid-stop.sh
</snip>

<snip>
# cat /etc/init.d/mdraid
...
run_addon() {
        local f=/lib64/rcscripts/addons/$1.sh
        if [ -r "$f" ]; then
                ( . "$f" )
        fi
}
start_addon() {
        run_addon "$1"-start
}
stop_addon() {
        run_addon "$1"-stop
}
</snip>

sys-fs/mdadm-3.1.4
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 07:17:02 UTC
This is done already