#!/bin/bash -e

# debirf module: mdadm
# remove/install extra packages for disk rescue with apt-get
#
# The debirf scripts were written by
# Jameson Rollins <jrollins@fifthhorseman.net>
# and
# Daniel Kahn Gillmor <dkg@fifthhorseman.net>.
#
# They are Copyright 2007-2016, and are all released under the GPL,
# version 3 or later.

#DEBIRF_PACKAGE>+mdadm

# preseed.  helpful link:
# http://blog.hjksolutions.com/articles/category/solutions
debirf_exec debconf-set-selections <<EOF
# Do you want to start MD arrays automatically?
mdadm mdadm/autostart boolean false
# MD arrays needed for the root filesystem:
mdadm mdadm/initrdstart string none
# Proceed with starting arrays not listed in mdadm.conf?
mdadm mdadm/initrdstart_notinconf boolean false
# Do you want to start the MD monitoring daemon?
mdadm mdadm/start_daemon boolean false
# Recipient for email notifications:
mdadm mdadm/mail_to string root
# Should mdadm run monthly redundancy checks of the MD arrays?
mdadm mdadm/autocheck boolean false
EOF
