set up systemd unit correctly
This commit is contained in:
parent
3d4eb2995c
commit
3bd3cad3c7
@ -1,20 +1,19 @@
|
|||||||
|
|
||||||
DESCRIPTION = ""
|
DESCRIPTION = "Install systemd unit file to automatically start default-user-rootfs container"
|
||||||
HOMEPAGE = ""
|
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||||
SECTION = ""
|
SECTION = ""
|
||||||
DEPENDS = ""
|
DEPENDS = ""
|
||||||
|
|
||||||
|
inherit systemd
|
||||||
|
|
||||||
SRC_URI = "file://default-user-rootfs.service"
|
SRC_URI = "file://default-user-rootfs.service"
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
do_install() {
|
SYSTEMD_SERVICE_${PN} = "default-user-rootfs.service"
|
||||||
install -d ${D}${sysconfdir}/systemd/system
|
|
||||||
install -m 644 ${WORKDIR}/default-user-rootfs.service ${D}${sysconfdir}/systemd/system
|
|
||||||
}
|
|
||||||
|
|
||||||
pkt_postinst_${PN}() {
|
do_install() {
|
||||||
systemctl --root=$D enable default-user-rootfs
|
install -d ${D}${systemd_system_unitdir}
|
||||||
|
install -m 644 ${WORKDIR}/default-user-rootfs.service ${D}${systemd_system_unitdir}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user