1*ff075f6eSBrad Bishopinherit obmc-phosphor-license 2*ff075f6eSBrad Bishopinherit allarch 3*ff075f6eSBrad Bishopinherit update-alternatives 4*ff075f6eSBrad Bishop 5*ff075f6eSBrad BishopRDEPENDS_${PN} += "${VIRTUAL-RUNTIME_base-utils}" 6*ff075f6eSBrad Bishop 7*ff075f6eSBrad BishopSRC_URI += "file://init" 8*ff075f6eSBrad Bishop 9*ff075f6eSBrad BishopFILES_${PN} += "${base_sbindir}/init" 10*ff075f6eSBrad Bishop 11*ff075f6eSBrad Bishopdo_install() { 12*ff075f6eSBrad Bishop install -d ${D}/${base_sbindir} 13*ff075f6eSBrad Bishop install -m 0755 ${WORKDIR}/init ${D}/${base_sbindir}/preinit-mounts 14*ff075f6eSBrad Bishop} 15*ff075f6eSBrad Bishop 16*ff075f6eSBrad BishopALTERNATIVE_${PN} = "init" 17*ff075f6eSBrad BishopALTERNATIVE_TARGET[init] = "${base_sbindir}/preinit-mounts" 18*ff075f6eSBrad BishopALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init" 19*ff075f6eSBrad Bishop 20*ff075f6eSBrad Bishop# Use a number higher than the systemd init alternative so that 21*ff075f6eSBrad Bishop# ours is enabled instead. 22*ff075f6eSBrad BishopALTERNATIVE_PRIORITY[init] ?= "400" 23