From 3bd3cad3c7556242acfe1f966da1997fd7e4f328 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Mon, 5 Feb 2018 11:19:20 -0500 Subject: [PATCH] set up systemd unit correctly --- .../default-user-rootfs/default-user-rootfs.bb | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/meta-citadel-distro/recipes-core/default-user-rootfs/default-user-rootfs.bb b/meta-citadel-distro/recipes-core/default-user-rootfs/default-user-rootfs.bb index 7cb1755..ec44ff9 100644 --- a/meta-citadel-distro/recipes-core/default-user-rootfs/default-user-rootfs.bb +++ b/meta-citadel-distro/recipes-core/default-user-rootfs/default-user-rootfs.bb @@ -1,20 +1,19 @@ -DESCRIPTION = "" -HOMEPAGE = "" +DESCRIPTION = "Install systemd unit file to automatically start default-user-rootfs container" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" SECTION = "" DEPENDS = "" +inherit systemd + SRC_URI = "file://default-user-rootfs.service" S = "${WORKDIR}" -do_install() { - install -d ${D}${sysconfdir}/systemd/system - install -m 644 ${WORKDIR}/default-user-rootfs.service ${D}${sysconfdir}/systemd/system -} +SYSTEMD_SERVICE_${PN} = "default-user-rootfs.service" -pkt_postinst_${PN}() { - systemctl --root=$D enable default-user-rootfs +do_install() { + install -d ${D}${systemd_system_unitdir} + install -m 644 ${WORKDIR}/default-user-rootfs.service ${D}${systemd_system_unitdir} }