diff options
| -rw-r--r-- | meta/recipes-extended/mdadm/mdadm_4.1.bb | 10 |
1 files 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 ef5ddf55db..597faf787a 100644 --- a/meta/recipes-extended/mdadm/mdadm_4.1.bb +++ b/meta/recipes-extended/mdadm/mdadm_4.1.bb | |||
| @@ -57,13 +57,15 @@ do_install() { | |||
| 57 | do_install_append() { | 57 | do_install_append() { |
| 58 | install -d ${D}/${sysconfdir}/ | 58 | install -d ${D}/${sysconfdir}/ |
| 59 | install -m 644 ${S}/mdadm.conf-example ${D}${sysconfdir}/mdadm.conf | 59 | install -m 644 ${S}/mdadm.conf-example ${D}${sysconfdir}/mdadm.conf |
| 60 | install -d ${D}/${systemd_unitdir}/system | ||
| 61 | install -m 644 ${WORKDIR}/mdmonitor.service ${D}/${systemd_unitdir}/system | ||
| 62 | install -m 644 ${S}/systemd/mdmon@.service ${D}/${systemd_unitdir}/system | ||
| 63 | install -d ${D}/${sysconfdir}/init.d | 60 | install -d ${D}/${sysconfdir}/init.d |
| 64 | install -m 755 ${WORKDIR}/mdadm.init ${D}${sysconfdir}/init.d/mdmonitor | 61 | install -m 755 ${WORKDIR}/mdadm.init ${D}${sysconfdir}/init.d/mdmonitor |
| 65 | } | 62 | } |
| 66 | 63 | ||
| 64 | do_install_append() { | ||
| 65 | oe_runmake install-systemd DESTDIR=${D} | ||
| 66 | } | ||
| 67 | |||
| 68 | |||
| 67 | do_compile_ptest() { | 69 | do_compile_ptest() { |
| 68 | oe_runmake test | 70 | oe_runmake test |
| 69 | } | 71 | } |
| @@ -90,3 +92,5 @@ RRECOMMENDS_${PN}-ptest += " \ | |||
| 90 | kernel-module-raid10 \ | 92 | kernel-module-raid10 \ |
| 91 | kernel-module-raid456 \ | 93 | kernel-module-raid456 \ |
| 92 | " | 94 | " |
| 95 | |||
| 96 | FILES_${PN} += "/lib/systemd/*" | ||
