[OE-core] [PATCH] mdadm: fix systemd service start up failure

Adrian Bunk bunk at stusta.de
Thu Jun 20 07:35:29 UTC 2019


On Thu, Jun 20, 2019 at 11:14:03AM +0800, changqing.li at windriver.com wrote:
> From: Changqing Li <changqing.li at windriver.com>
> 
> 1. mdadm: No mail address or alert command - not monitoring
> 
> with --monitor mode, mdadm needs a mail address and/or a program.
> This can be given with "mailaddr" and "program" lines to that
> monitoring can be started using.
> 
> fix by given a mail address, user can replace with a valid one
> when use.
>...
> +        sed -i -e 's/#MAILADDR root at mydomain.tld/MAILADDR root at mydomain.tld/g' ${D}${sysconfdir}/mdadm.conf
>...

Defaulting to try to send emails to an invalid address is worse than not 
having an email address configured.

Looking at the manpages I would have expected syslog-only monitoring to 
work if neither mailaddr nor program are configured.
If this isn't working, is this something upstream considers a bug?

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



More information about the Openembedded-core mailing list