1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-07 22:18:23 +01:00
meta-rpi-diya/recipes-diya/initramfs/recovery-boot_0.1.bb

47 lines
1013 B
BlitzBasic
Raw Normal View History

2023-08-01 14:19:39 +02:00
SUMMARY = "Modular initramfs system"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}"
RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}"
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
PR = "r4"
2023-08-01 19:34:18 +02:00
inherit useradd
2023-08-01 14:19:39 +02:00
inherit allarch
SRC_URI = "file://init \
file://udev \
file://debug \
"
S = "${WORKDIR}"
2023-08-01 19:34:18 +02:00
USERADD_PACKAGES = "${PN}"
GROUPADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "-u 0 -d /root -r -s /bin/sh root"
2023-08-01 14:19:39 +02:00
do_install() {
install -d ${D}/init.d
# base
2023-08-01 17:21:44 +02:00
install -m 0755 ${WORKDIR}/init ${D}/init
2023-08-01 14:19:39 +02:00
# udev
2023-08-01 17:35:15 +02:00
install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev
2023-08-01 14:19:39 +02:00
# debug
install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug
# Create device nodes expected by some kernels in initramfs
# before even executing /init.
install -d ${D}/dev
mknod -m 622 ${D}/dev/console c 5 1
}
FILES:${PN} = "/init /init.d /dev"