Codebase list mdadm / bb29ccb
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
4 changed file(s) with 13 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
6767 PKG_CONFIG ?= pkg-config
6868
6969 SYSCONFDIR = /etc
70 CONFFILE = $(SYSCONFDIR)/mdadm.conf
71 CONFFILE2 = $(SYSCONFDIR)/mdadm/mdadm.conf
70 CONFFILE = $(SYSCONFDIR)/mdadm/mdadm.conf
71 CONFFILE2 = $(SYSCONFDIR)/mdadm.conf
7272 MAILCMD =/usr/sbin/sendmail -t
7373 CONFFILEFLAGS = -DCONFFILE=\"$(CONFFILE)\" -DCONFFILE2=\"$(CONFFILE2)\"
7474 # Both MAP_DIR and MDMON_DIR should be somewhere that persists across the
608608 ;
609609
610610 char Help_config[] =
611 "The /etc/mdadm.conf config file:\n\n"
611 "The /etc/mdadm/mdadm.conf config file:\n\n"
612612 " The config file contains, apart from blank lines and comment lines that\n"
613613 " start with a hash(#), array lines, device lines, and various\n"
614614 " configuration lines.\n"
266266 .TP
267267 .BR \-c ", " \-\-config=
268268 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
269273 .B /etc/mdadm.conf
270274 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 .
276276 If the config file given is
277277 .B "partitions"
278278 then nothing will be read, but
19511951 or requested with (a possibly implicit)
19521952 .BR \-\-scan .
19531953 In the later case,
1954 .B /etc/mdadm/mdadm.conf
1955 or
19541956 .B /etc/mdadm.conf
1955 or
1956 .B /etc/mdadm/mdadm.conf
19571957 is used.
19581958
19591959 If
32753275 is given in Misc mode, and to monitor array reconstruction
32763276 on Monitor mode.
32773277
3278 .SS /etc/mdadm.conf
3278 .SS /etc/mdadm/mdadm.conf (or /etc/mdadm.conf)
32793279
32803280 The config file lists which devices may be scanned to see if
32813281 they contain MD super block, and gives identifying information
32833283 .BR mdadm.conf (5)
32843284 for more details.
32853285
3286 .SS /etc/mdadm.conf.d
3286 .SS /etc/mdadm/mdadm.conf.d (or /etc/mdadm.conf.d)
32873287
32883288 A directory containing configuration files which are read in lexical
32893289 order.
77 .SH NAME
88 mdadm.conf \- configuration for management of Software RAID with mdadm
99 .SH SYNOPSIS
10 /etc/mdadm.conf
10 /etc/mdadm/mdadm.conf
1111 .SH DESCRIPTION
1212 .PP
1313 .I mdadm