summaryrefslogtreecommitdiff
path: root/debian/patches/debian-conffile-location.diff
blob: 8acc6077217fc57d0ab5298a1980712cafe08d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
From: martin f. krafft <madduck@debian.org>
Subject: 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>

---
 Makefile     |    4 ++--
 ReadMe.c     |    2 +-
 mdadm.8.in   |   14 ++++++--------
 mdadm.conf.5 |    2 +-
 mdassemble.8 |    2 +-
 5 files changed, 11 insertions(+), 13 deletions(-)

--- a/Makefile
+++ b/Makefile
@@ -61,8 +61,8 @@
 PKG_CONFIG ?= pkg-config
 
 SYSCONFDIR = /etc
-CONFFILE = $(SYSCONFDIR)/mdadm.conf
-CONFFILE2 = $(SYSCONFDIR)/mdadm/mdadm.conf
+CONFFILE = $(SYSCONFDIR)/mdadm/mdadm.conf
+CONFFILE2 = $(SYSCONFDIR)/mdadm.conf
 MAILCMD =/usr/sbin/sendmail -t
 CONFFILEFLAGS = -DCONFFILE=\"$(CONFFILE)\" -DCONFFILE2=\"$(CONFFILE2)\"
 # Both MAP_DIR and MDMON_DIR should be somewhere that persists across the
--- a/ReadMe.c
+++ b/ReadMe.c
@@ -590,7 +590,7 @@
 ;
 
 char Help_config[] =
-"The /etc/mdadm.conf config file:\n\n"
+"The /etc/mdadm/mdadm.conf config file:\n\n"
 " The config file contains, apart from blank lines and comment lines that\n"
 " start with a hash(#), array lines, device lines, and various\n"
 " configuration lines.\n"
--- a/mdadm.8.in
+++ b/mdadm.8.in
@@ -264,13 +264,13 @@
 .TP
 .BR \-c ", " \-\-config=
 Specify the config file or directory.  Default is to use
-.B /etc/mdadm.conf
+.B /etc/mdadm/mdadm.conf
 and
-.BR /etc/mdadm.conf.d ,
+.BR /etc/mdadm/mdadm.conf.d ,
 or if those are missing then
-.B /etc/mdadm/mdadm.conf
+.B /etc/mdadm.conf
 and
-.BR /etc/mdadm/mdadm.conf.d .
+.BR /etc/mdadm.conf.d .
 If the config file given is
 .B "partitions"
 then nothing will be read, but
@@ -1742,9 +1742,9 @@
 or requested with (a possibly implicit)
 .BR \-\-scan .
 In the later case,
-.B /etc/mdadm.conf
-or
 .B /etc/mdadm/mdadm.conf
+or
+.B /etc/mdadm.conf
 is used.
 
 If
@@ -3003,7 +3003,7 @@
 is given in Misc mode, and to monitor array reconstruction
 on Monitor mode.
 
-.SS /etc/mdadm.conf
+.SS /etc/mdadm/mdadm.conf (or /etc/mdadm.conf)
 
 The config file lists which devices may be scanned to see if
 they contain MD super block, and gives identifying information
@@ -3011,7 +3011,7 @@
 .BR mdadm.conf (5)
 for more details.
 
-.SS /etc/mdadm.conf.d
+.SS /etc/mdadm/mdadm.conf.d (or /etc/mdadm.conf.d)
 
 A directory containing configuration files which are read in lexical
 order.
--- a/mdadm.conf.5
+++ b/mdadm.conf.5
@@ -8,7 +8,7 @@
 .SH NAME
 mdadm.conf \- configuration for management of Software RAID with mdadm
 .SH SYNOPSIS
-/etc/mdadm.conf
+/etc/mdadm/mdadm.conf
 .SH DESCRIPTION
 .PP
 .I mdadm
--- a/mdassemble.8
+++ b/mdassemble.8
@@ -40,7 +40,7 @@
 
 .SH FILES
 
-.SS /etc/mdadm.conf
+.SS /etc/mdadm/mdadm.conf
 
 The config file lists which devices may be scanned to see if
 they contain MD super block, and gives identifying information