Bug#816409: /usr/share/mdadm/mkconf removes DEVICE settings
    Adam Heath 
    doogie at brainfood.com
       
    Tue Mar  1 17:04:48 UTC 2016
    
    
  
Package: mdadm
Severity: important
Version: 3.3.2-5+deb8u1
If I specify a DEVICE line in mdadm.conf, /usr/share/mdadm/mkconf does 
*not* keep it; instead, the output file contains the DEVICE line 
prefixed with a comment character('#').
==
root at virt-22:~# diff -u <(cat /etc/mdadm/mdadm.conf) 
<(/usr/share/mdadm/mkconf)
--- /dev/fd/63  2016-03-01 11:03:13.103248544 -0600
+++ /dev/fd/62  2016-03-01 11:03:13.099248544 -0600
@@ -6,7 +6,7 @@
  # by default (built-in), scan all partitions (/proc/partitions) and all
  # containers for MD superblocks. alternatively, specify devices to 
scan, using
  # wildcards if desired.
-#DEVICE partitions containers
+#DEVICE /dev/sde* /dev/sdf*
  # auto-create devices with Debian standard permissions
  CREATE owner=root group=disk mode=0660 auto=yes
@@ -18,8 +18,7 @@
  MAILADDR root
  # definitions of existing MD arrays
-DEVICE /dev/sde* /dev/sdf*
  ARRAY /dev/md/0  metadata=1.2 UUID=93abeb06:069eec23:6f98c97c:ceffb159 
name=virt-22:0
  ARRAY /dev/md/1  metadata=1.2 UUID=849ae009:3e40351e:620f0c9c:09f4e4ba 
name=virt-22:1
-# This configuration was auto-generated on Fri, 26 Feb 2016 12:15:21 
-0600 by mkconf
+# This configuration was auto-generated on Tue, 01 Mar 2016 11:03:13 
-0600 by mkconf
==
It's also not nice to reorder the file, but that is a separate bug that 
I don't feel like filing right now.
    
    
More information about the pkg-mdadm-devel
mailing list