mdadm: Fix config generation
authorRosen Penev <rosenp@gmail.com>
Tue, 17 Oct 2017 16:28:39 +0000 (09:28 -0700)
committerJo-Philipp Wich <jo@mein.io>
Fri, 27 Oct 2017 00:32:32 +0000 (02:32 +0200)
commit8eadec40bdc205568e34e19b07b2a3035c9223fb
tree37671a1b48255b9d9cd3c7bd8a971b54af0db306
parent378e1a4858b9c51e6fcf396adc602fd835280759
mdadm: Fix config generation

The init script generated something like "DEVICE=/dev/sda" when it should
have been generating "DEVICE /dev/sda". mdadm errors on this. Patch by jow.

Also changed the default sendmail path to /usr/sbin/sendmail. No package
in LEDE provides /sbin/sendmail. msmtp provides /usr/sbin/sendmail so use
that.

Also add a patch to fix file paths for mdadm runtime files. mdadm currently
errors on them since /run is missing. Once /run is added to stock LEDE, this
patch can be removed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[rewrap commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/utils/mdadm/Makefile
package/utils/mdadm/files/mdadm.init