175f0387bSBrad BishopLICENSE = "Apache-2.0" 26f3f0aa7SBrad BishopLIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 375f0387bSBrad Bishop 4ff075f6eSBrad BishopSRC_URI += "file://init" 5ff075f6eSBrad Bishop 69936f86dSEd Tanousinherit allarch 79936f86dSEd Tanousinherit update-alternatives 8ff075f6eSBrad Bishop 9ff075f6eSBrad Bishopdo_install() { 10ff075f6eSBrad Bishop install -d ${D}/${base_sbindir} 11*91a1cec2SAndrew Geissler install -m 0755 ${UNPACKDIR}/init ${D}/${base_sbindir}/preinit-mounts 12ff075f6eSBrad Bishop} 13ff075f6eSBrad Bishop 149936f86dSEd TanousRDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}" 15ff075f6eSBrad Bishop 169936f86dSEd TanousFILES:${PN} += "${base_sbindir}/init" 179936f86dSEd Tanous 189936f86dSEd TanousALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init" 19ff075f6eSBrad Bishop# Use a number higher than the systemd init alternative so that 20ff075f6eSBrad Bishop# ours is enabled instead. 21ff075f6eSBrad BishopALTERNATIVE_PRIORITY[init] ?= "400" 229936f86dSEd Tanous 239936f86dSEd TanousALTERNATIVE:${PN} = "init" 249936f86dSEd TanousALTERNATIVE_TARGET[init] = "${base_sbindir}/preinit-mounts" 25