~xnox/ubuntu/quantal/mdadm/merge

« back to all changes in this revision

Viewing changes to debian/patches/debian/conffile-location.diff

  • Committer: Dmitrijs Ledkovs
  • Author(s): Surbhi Palande
  • Date: 2010-09-30 17:46:19 UTC
  • mfrom: (1.1.25 sid)
  • Revision ID: dmitrijs.ledkovs@canonical.com-20100930174619-cqsokylnluraiyr8
Tags: 3.1.4-1+8efb9d1ubuntu1
* Merge from debian unstable. (LP: #603582) 
* Remaining changes
  - Assemble.c, config.c: upgraded to the mdadm-3.1.4 version of these files
    from Debian.
  - debian/control: we need udev and util-linux in the right version. We
    also remove the build dependency from quilt and docbook-to-man as both
    are not used in Ubuntus mdadm.
  - debian/initramfs/hook: kept the Ubuntus version for handling the absence
    of active raid arrays in <initramfs>/etc/mdadm/mdadm.conf
  - debian/initramfs/script.local-top.DEBIAN, debian/mdadm-startall,
    debian/mdadm.raid.DEBIAN: removed. udev does its job now instead.
  - debian/mdadm-startall.sgml, debian/mdadm-startall.8: documentation of
    unused startall script
  - debian/mdadm.config, debian/mdadm.postinst - let udev do the handling
    instead. Resolved merge conflict by keeping Ubuntu's version.
  - debian/rules: kept debian's switch to using dh_lintian
  - debian/mdadm.links, debian/mdadm.manpages: dropped owing to the fact
    that these are not used in Ubuntu. Also dropped the build-dep on docbook
    to man)
  - debian/mdadm.postinst, debian/mdadm.config, initramfs/init-premount:
    boot-degraded enablement; maintain udev starting of RAID devices;
    init-premount hook script for the initramfs, to provide information at
    boot
  - debian/mkconf.in is the older mkconf. Kept the Ubuntus version.
  - debian/rules: Kept Ubuntus version for installing apport hooks, not
    installing un-used startall script and for adding a udev rule
    corresponding to mdadm.
  - debian/install-rc, check.d/_numbers, check.d/root_on_raid: Ubuntu partman
    installer changes
  - debian/presubj: Dropped this unused bug reporting file. Instead use
    source_mdadm.py act as an apport hook for bug handling.
  - rename debian/mdadm.vol_id.udev to debian/mdadm.mdadm-blkid.udev so that
    the rules file ends up with a more reasonable name

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From: martin f. krafft <madduck@debian.org>
 
2
Subject: Set /etc/mdadm/mdadm.conf as primary config file location
 
3
 
 
4
On Debian, the configuration file resides primarily in /etc/mdadm/mdadm.conf,
 
5
/etc/mdadm.conf is only used as a backup.
 
6
 
 
7
This is a Debian-specific patch.
 
8
 
 
9
Forwarded: not-needed
 
10
Reviewed-by: martin f. krafft <madduck@debian.org>
 
11
 
 
12
---
 
13
 Makefile     |    4 ++--
 
14
 ReadMe.c     |    2 +-
 
15
 mdadm.8.in   |   14 ++++++--------
 
16
 mdadm.conf.5 |    2 +-
 
17
 mdassemble.8 |    2 +-
 
18
 5 files changed, 11 insertions(+), 13 deletions(-)
 
19
 
 
20
diff --git a/Makefile b/Makefile
 
21
index e2c65a5..0e85ccb 100644
 
22
--- a/Makefile
 
23
+++ b/Makefile
 
24
@@ -60,8 +60,8 @@ else
 
25
 endif
 
26
 
 
27
 SYSCONFDIR = /etc
 
28
-CONFFILE = $(SYSCONFDIR)/mdadm.conf
 
29
-CONFFILE2 = $(SYSCONFDIR)/mdadm/mdadm.conf
 
30
+CONFFILE = $(SYSCONFDIR)/mdadm/mdadm.conf
 
31
+CONFFILE2 = $(SYSCONFDIR)/mdadm.conf
 
32
 MAILCMD =/usr/sbin/sendmail -t
 
33
 CONFFILEFLAGS = -DCONFFILE=\"$(CONFFILE)\" -DCONFFILE2=\"$(CONFFILE2)\"
 
34
 # Both MAP_DIR and MDMON_DIR should be somewhere that persists across the
 
35
diff --git a/ReadMe.c b/ReadMe.c
 
36
index b97c55e..aa26032 100644
 
37
--- a/ReadMe.c
 
38
+++ b/ReadMe.c
 
39
@@ -560,7 +560,7 @@ char Help_incr[] =
 
40
 ;
 
41
 
 
42
 char Help_config[] =
 
43
-"The /etc/mdadm.conf config file:\n\n"
 
44
+"The /etc/mdadm/mdadm.conf config file:\n\n"
 
45
 " The config file contains, apart from blank lines and comment lines that\n"
 
46
 " start with a hash(#), four sorts of configuration lines: array lines, \n"
 
47
 " device lines, mailaddr lines and program lines.\n"
 
48
diff --git a/mdadm.8.in b/mdadm.8.in
 
49
index d911cb3..d267b8c 100644
 
50
--- a/mdadm.8.in
 
51
+++ b/mdadm.8.in
 
52
@@ -261,9 +261,9 @@ the exact meaning of this option in different contexts.
 
53
 .TP
 
54
 .BR \-c ", " \-\-config=
 
55
 Specify the config file.  Default is to use
 
56
-.BR /etc/mdadm.conf ,
 
57
-or if that is missing then
 
58
-.BR /etc/mdadm/mdadm.conf .
 
59
+.BR /etc/mdadm/mdadm.conf ,
 
60
+or if that is missing, then
 
61
+.BR /etc/mdadm.conf .
 
62
 If the config file given is
 
63
 .B "partitions"
 
64
 then nothing will be read, but
 
65
@@ -1429,8 +1429,6 @@ The config file is only used if explicitly named with
 
66
 or requested with (a possibly implicit)
 
67
 .BR \-\-scan .
 
68
 In the later case,
 
69
-.B /etc/mdadm.conf
 
70
-or
 
71
 .B /etc/mdadm/mdadm.conf
 
72
 is used.
 
73
 
 
74
@@ -1771,7 +1769,7 @@ or
 
75
 .B \-\-scan
 
76
 will cause the output to be less detailed and the format to be
 
77
 suitable for inclusion in
 
78
-.BR /etc/mdadm.conf .
 
79
+.BR /etc/mdadm/mdadm.conf .
 
80
 The exit status of
 
81
 .I mdadm
 
82
 will normally be 0 unless
 
83
@@ -1848,7 +1846,7 @@ or
 
84
 is given, then multiple devices that are components of the one array
 
85
 are grouped together and reported in a single entry suitable
 
86
 for inclusion in
 
87
-.BR /etc/mdadm.conf .
 
88
+.BR /etc/mdadm/mdadm.conf .
 
89
 
 
90
 Having
 
91
 .B \-\-scan
 
92
@@ -2545,7 +2543,7 @@ uses this to find arrays when
 
93
 is given in Misc mode, and to monitor array reconstruction
 
94
 on Monitor mode.
 
95
 
 
96
-.SS /etc/mdadm.conf
 
97
+.SS /etc/mdadm/mdadm.conf
 
98
 
 
99
 The config file lists which devices may be scanned to see if
 
100
 they contain MD super block, and gives identifying information
 
101
diff --git a/mdadm.conf.5 b/mdadm.conf.5
 
102
index e677ba9..648d26a 100644
 
103
--- a/mdadm.conf.5
 
104
+++ b/mdadm.conf.5
 
105
@@ -8,7 +8,7 @@
 
106
 .SH NAME
 
107
 mdadm.conf \- configuration for management of Software RAID with mdadm
 
108
 .SH SYNOPSIS
 
109
-/etc/mdadm.conf
 
110
+/etc/mdadm/mdadm.conf
 
111
 .SH DESCRIPTION
 
112
 .PP
 
113
 .I mdadm
 
114
diff --git a/mdassemble.8 b/mdassemble.8
 
115
index 986432c..d06c201 100644
 
116
--- a/mdassemble.8
 
117
+++ b/mdassemble.8
 
118
@@ -40,7 +40,7 @@ There are no options to
 
119
 
 
120
 .SH FILES
 
121
 
 
122
-.SS /etc/mdadm.conf
 
123
+.SS /etc/mdadm/mdadm.conf
 
124
 
 
125
 The config file lists which devices may be scanned to see if
 
126
 they contain MD super block, and gives identifying information
 
127
-- 
 
128
tg: (972ee72..) debian/conffile-location (depends on: upstream)