1
0
forked from brl/citadel
citadel/meta-citadel-distro/recipes-core/primary-user-appimg/primary-user-appimg.bb

25 lines
807 B
BlitzBasic

DESCRIPTION = "Install systemd unit file to automatically start primary-user-appimg container"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SECTION = ""
DEPENDS = ""
inherit systemd
SRC_URI = "file://primary-user-appimg.service file://primary.nspawn file://run-in-image"
S = "${WORKDIR}"
SYSTEMD_SERVICE_${PN} = "primary-user-appimg.service"
RDEPENDS_${PN} = "bash"
do_install() {
install -d ${D}${systemd_system_unitdir}
install -m 644 ${WORKDIR}/primary-user-appimg.service ${D}${systemd_system_unitdir}
install -d ${D}${sysconfdir}/systemd/nspawn
install -m 644 ${WORKDIR}/primary.nspawn ${D}${sysconfdir}/systemd/nspawn
install -d ${D}${libexecdir}
install -m 755 ${WORKDIR}/run-in-image ${D}${libexecdir}
}