summaryrefslogtreecommitdiffstats
path: root/recipes-sota/ostree-initrd/ostree-initrd.bb
blob: 6046c81716a609e7ecaa944aa7287c572fd90bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SUMMARY = "Extremely basic live image init script"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://init.sh"

S = "${WORKDIR}"

PV = "3"

do_install() {
	install -dm 0755 ${D}/etc
	touch ${D}/etc/initrd-release
	install -dm 0755 ${D}/dev
	install -dm 0755 ${D}/sbin
	install -m 0755 ${WORKDIR}/init.sh ${D}/sbin/init
}

inherit allarch

FILES_${PN} += " /dev /etc/initrd-release /sbin/init "