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>
Wed, 13 Dec 2017 11:58:38 +0000 (12:58 +0100)
commit6c1b6e8221bc3633e7f4482856cd3740f01c7140
tree26f17dac7ad9a61f0580339bb8cacbcace577be8
parent4fc0fb3ca34e335c4922dbada3dca72126e45ba2
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>
(cherry picked from commit 8eadec40bdc205568e34e19b07b2a3035c9223fb)
package/utils/mdadm/Makefile
package/utils/mdadm/files/mdadm.init