Set /etc/mdadm/mdadm.conf as primary config file location
On Debian, the configuration file resides primarily in /etc/mdadm/mdadm.conf,
/etc/mdadm.conf is only used as a backup.
This is a Debian-specific patch.
Forwarded: not-needed
Reviewed-by: martin f. krafft <madduck@debian.org>
Gbp-Pq: Name debian-conffile-location.diff
martin f. krafft authored 5 years ago
Dimitri John Ledkov committed 5 years ago
67 | 67 |
PKG_CONFIG ?= pkg-config
|
68 | 68 |
|
69 | 69 |
SYSCONFDIR = /etc
|
70 | |
CONFFILE = $(SYSCONFDIR)/mdadm.conf
|
71 | |
CONFFILE2 = $(SYSCONFDIR)/mdadm/mdadm.conf
|
|
70 |
CONFFILE = $(SYSCONFDIR)/mdadm/mdadm.conf
|
|
71 |
CONFFILE2 = $(SYSCONFDIR)/mdadm.conf
|
72 | 72 |
MAILCMD =/usr/sbin/sendmail -t
|
73 | 73 |
CONFFILEFLAGS = -DCONFFILE=\"$(CONFFILE)\" -DCONFFILE2=\"$(CONFFILE2)\"
|
74 | 74 |
# Both MAP_DIR and MDMON_DIR should be somewhere that persists across the
|
608 | 608 |
;
|
609 | 609 |
|
610 | 610 |
char Help_config[] =
|
611 | |
"The /etc/mdadm.conf config file:\n\n"
|
|
611 |
"The /etc/mdadm/mdadm.conf config file:\n\n"
|
612 | 612 |
" The config file contains, apart from blank lines and comment lines that\n"
|
613 | 613 |
" start with a hash(#), array lines, device lines, and various\n"
|
614 | 614 |
" configuration lines.\n"
|
266 | 266 |
.TP
|
267 | 267 |
.BR \-c ", " \-\-config=
|
268 | 268 |
Specify the config file or directory. Default is to use
|
|
269 |
.B /etc/mdadm/mdadm.conf
|
|
270 |
and
|
|
271 |
.BR /etc/mdadm/mdadm.conf.d ,
|
|
272 |
or if those are missing then
|
269 | 273 |
.B /etc/mdadm.conf
|
270 | 274 |
and
|
271 | |
.BR /etc/mdadm.conf.d ,
|
272 | |
or if those are missing then
|
273 | |
.B /etc/mdadm/mdadm.conf
|
274 | |
and
|
275 | |
.BR /etc/mdadm/mdadm.conf.d .
|
|
275 |
.BR /etc/mdadm.conf.d .
|
276 | 276 |
If the config file given is
|
277 | 277 |
.B "partitions"
|
278 | 278 |
then nothing will be read, but
|
|
1951 | 1951 |
or requested with (a possibly implicit)
|
1952 | 1952 |
.BR \-\-scan .
|
1953 | 1953 |
In the later case,
|
|
1954 |
.B /etc/mdadm/mdadm.conf
|
|
1955 |
or
|
1954 | 1956 |
.B /etc/mdadm.conf
|
1955 | |
or
|
1956 | |
.B /etc/mdadm/mdadm.conf
|
1957 | 1957 |
is used.
|
1958 | 1958 |
|
1959 | 1959 |
If
|
|
3275 | 3275 |
is given in Misc mode, and to monitor array reconstruction
|
3276 | 3276 |
on Monitor mode.
|
3277 | 3277 |
|
3278 | |
.SS /etc/mdadm.conf
|
|
3278 |
.SS /etc/mdadm/mdadm.conf (or /etc/mdadm.conf)
|
3279 | 3279 |
|
3280 | 3280 |
The config file lists which devices may be scanned to see if
|
3281 | 3281 |
they contain MD super block, and gives identifying information
|
|
3283 | 3283 |
.BR mdadm.conf (5)
|
3284 | 3284 |
for more details.
|
3285 | 3285 |
|
3286 | |
.SS /etc/mdadm.conf.d
|
|
3286 |
.SS /etc/mdadm/mdadm.conf.d (or /etc/mdadm.conf.d)
|
3287 | 3287 |
|
3288 | 3288 |
A directory containing configuration files which are read in lexical
|
3289 | 3289 |
order.
|
7 | 7 |
.SH NAME
|
8 | 8 |
mdadm.conf \- configuration for management of Software RAID with mdadm
|
9 | 9 |
.SH SYNOPSIS
|
10 | |
/etc/mdadm.conf
|
|
10 |
/etc/mdadm/mdadm.conf
|
11 | 11 |
.SH DESCRIPTION
|
12 | 12 |
.PP
|
13 | 13 |
.I mdadm
|