From: Liwei Song <liwei.song@windriver.com>
To: Khem Raj <raj.khem@gmail.com>,
oe-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] mdadm: install the systemd service through Makefile
Date: Tue, 21 May 2019 10:21:22 +0800 [thread overview]
Message-ID: <5CE360A2.10907@windriver.com> (raw)
In-Reply-To: <9ad65fe0-8a88-9413-7f2d-0cc855395721@gmail.com>
On 05/21/2019 05:18 AM, Khem Raj wrote:
>
>
> On 5/15/19 7:41 PM, Liwei Song wrote:
>> The original mdadm service may include variable like BINDIR,
>> It should use the real value of it, since the install method
>> "install-systemd" in Makefile can easily do such work, so don't
>> install it in bb file manually, use "make install-systemd" to
>> install all the service of mdadm.
>>
>> Signed-off-by: Liwei Song <liwei.song@windriver.com>
>> ---
>> meta/recipes-extended/mdadm/mdadm_4.1.bb | 10 +++++++---
>> 1 file changed, 7 insertions(+), 3 deletions(-)
>>
>> diff --git a/meta/recipes-extended/mdadm/mdadm_4.1.bb b/meta/recipes-extended/mdadm/mdadm_4.1.bb
>> index 4168ce4d0cb8..a4b9ef94799f 100644
>> --- a/meta/recipes-extended/mdadm/mdadm_4.1.bb
>> +++ b/meta/recipes-extended/mdadm/mdadm_4.1.bb
>> @@ -55,13 +55,15 @@ do_install() {
>> do_install_append() {
>> install -d ${D}/${sysconfdir}/
>> install -m 644 ${S}/mdadm.conf-example ${D}${sysconfdir}/mdadm.conf
>> - install -d ${D}/${systemd_unitdir}/system
>> - install -m 644 ${WORKDIR}/mdmonitor.service ${D}/${systemd_unitdir}/system
>> - install -m 644 ${S}/systemd/mdmon@.service ${D}/${systemd_unitdir}/system
>> install -d ${D}/${sysconfdir}/init.d
>> install -m 755 ${WORKDIR}/mdadm.init ${D}${sysconfdir}/init.d/mdmonitor
>> }
>> +do_install_append() {
>> + oe_runmake install-systemd DESTDIR=${D}
>> +}
>
> perhaps this should be guarded with systemd being in DISTRO_FEATURES check.
Hi Khem,
Do you mean all the service file need to be added to SYSTEMD_SERVICE_${PN} ?
Thanks,
Liwei.
>
>> +
>> +
>> do_compile_ptest() {
>> oe_runmake test
>> }
>> @@ -88,3 +90,5 @@ RRECOMMENDS_${PN}-ptest += " \
>> kernel-module-raid10 \
>> kernel-module-raid456 \
>> "
>> +
>> +FILES_${PN} += "/lib/systemd/*"
>>
>
>
next prev parent reply other threads:[~2019-05-21 2:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-16 2:41 [PATCH] mdadm: install the systemd service through Makefile Liwei Song
2019-05-20 21:18 ` Khem Raj
2019-05-21 2:21 ` Liwei Song [this message]
2019-05-21 6:43 ` Khem Raj
2019-05-21 7:52 ` Liwei Song
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5CE360A2.10907@windriver.com \
--to=liwei.song@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox