3
# mkconf -- outputs valid mdadm.conf contents for the local system
5
# Copyright © 2006 martin f. krafft <madduck@madduck.net>
6
# distributed under the terms of the Artistic Licence.
11
if [ -r /proc/partitions ]; then
12
echo DEVICE partitions
14
echo E: cannot read /proc/partitions and thus cannot do my magic. >&2
18
if [ ! -r /proc/mdstat ]; then
19
echo W: RAID subsystem is not loaded, thus I cannot scan for arrays. >&2
21
# || : is workaround for #367901
22
$MDADM --examine --scan --config=partitions || :