mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2026-04-09 11:32:31 +02:00
add missing recipe
This commit is contained in:
52
recipes-diya/initramfs/recovery-boot_0.1.bb
Normal file
52
recipes-diya/initramfs/recovery-boot_0.1.bb
Normal file
@@ -0,0 +1,52 @@
|
||||
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"
|
||||
|
||||
inherit allarch
|
||||
|
||||
SRC_URI = "file://init \
|
||||
file://exec \
|
||||
file://udev \
|
||||
file://e2fs \
|
||||
file://debug \
|
||||
file://lvm \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/init.d
|
||||
|
||||
# base
|
||||
install -m 0755 ${WORKDIR}/init ${D}/init
|
||||
|
||||
# exec
|
||||
install -m 0755 ${WORKDIR}/exec ${D}/init.d/89-exec
|
||||
|
||||
# udev
|
||||
install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev
|
||||
|
||||
# e2fs
|
||||
install -m 0755 ${WORKDIR}/e2fs ${D}/init.d/10-e2fs
|
||||
|
||||
# debug
|
||||
install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug
|
||||
|
||||
# lvm
|
||||
install -m 0755 ${WORKDIR}/lvm ${D}/init.d/09-lvm
|
||||
|
||||
|
||||
# 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"
|
||||
Reference in New Issue
Block a user