1inherit obmc-phosphor-license
2inherit allarch
3inherit update-alternatives
4
5RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_base-utils}"
6
7SRC_URI += "file://init"
8
9FILES_${PN} += "${base_sbindir}/init"
10
11do_install() {
12	install -d ${D}/${base_sbindir}
13	install -m 0755 ${WORKDIR}/init ${D}/${base_sbindir}/preinit-mounts
14}
15
16ALTERNATIVE_${PN} = "init"
17ALTERNATIVE_TARGET[init] = "${base_sbindir}/preinit-mounts"
18ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init"
19
20# Use a number higher than the systemd init alternative so that
21# ours is enabled instead.
22ALTERNATIVE_PRIORITY[init] ?= "400"
23