diff options
author | NeilBrown <neilb@suse.de> | 2013-09-03 13:25:02 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-09-03 13:25:02 +1000 |
commit | 2dfb675b94852f4a1a4ec24528292dd0e8f96c89 (patch) | |
tree | 81420f1b9d03b52cadd19f65acbe833e3cfd737d /mdadm.8.in | |
parent | 824e57276a32684a32ef4d36c0caddd1d2b9b2a2 (diff) |
config: support MDADM_CONF_AUTO= env var.
If a distribution allows the choice between using mdadm and
dmraid for DDF and IMSM to be made by some config file
(/etc/defaults/ /sys/sysconfig/ etc) which is queried by
/etc/init.d scripts, then the fact that mdadm implements this
choce through the config file is not very helpful.
So allow the "AUTO" line to be specified in part using MDADM_CONF_AUTO
in environment.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.8.in')
-rw-r--r-- | mdadm.8.in | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -2838,6 +2838,28 @@ These checks can be suppressed by setting IMSM_NO_PLATFORM=1 in the environment. This can be useful for testing or for disaster recovery. You should be aware that interoperability may be compromised by setting this value. + +.TP +.B MDADM_CONF_AUTO +Any string given in this variable is added to the start of the +.B AUTO +line in the config file, or treated as the whole +.B AUTO +line if none is given. It can be used to disable certain metadata +types when +.I mdadm +is called from a boot script. For example +.br +.B " export MDADM_CONF_AUTO='-ddf -imsm' +.br +will make sure that +.I mdadm +does not automatically assemble any DDF or +IMSM arrays that are found. This can be useful on systems configured +to manage such arrays with +.BR dmraid . + + .SH EXAMPLES .B " mdadm \-\-query /dev/name-of-device" |