summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/recipes-phosphor/preinit-mounts/preinit-mounts.bb
blob: 30e0f3613aaf6c7c3a3bae1b301c9d7ecea458ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
inherit obmc-phosphor-license
inherit allarch
inherit update-alternatives

RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_base-utils}"

SRC_URI += "file://init"

FILES_${PN} += "${base_sbindir}/init"

do_install() {
	install -d ${D}/${base_sbindir}
	install -m 0755 ${WORKDIR}/init ${D}/${base_sbindir}/preinit-mounts
}

ALTERNATIVE_${PN} = "init"
ALTERNATIVE_TARGET[init] = "${base_sbindir}/preinit-mounts"
ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init"

# Use a number higher than the systemd init alternative so that
# ours is enabled instead.
ALTERNATIVE_PRIORITY[init] ?= "400"
OpenPOWER on IntegriCloud