mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-26 02:38:22 +01:00
add initramfs recipe
This commit is contained in:
parent
3cfd696935
commit
e15b711ca5
@ -2,7 +2,7 @@
|
||||
DESCRIPTION = "Recovery initramfs image."
|
||||
|
||||
|
||||
PACKAGE_INSTALL = "busybox ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
|
||||
PACKAGE_INSTALL = "initramfs-boot busybox ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
|
||||
|
||||
# Do not pollute the initrd image with rootfs features
|
||||
IMAGE_FEATURES = ""
|
||||
@ -23,11 +23,4 @@ IMAGE_ROOTFS_EXTRA_SPACE = "0"
|
||||
COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)'
|
||||
|
||||
|
||||
python tinyinitrd () {
|
||||
# Modify our init file so the user knows we drop to shell prompt on purpose
|
||||
newinit = "/bin/busybox sh init"
|
||||
with open(d.expand('${IMAGE_ROOTFS}/init'), 'w') as init:
|
||||
init.write(newinit)
|
||||
}
|
||||
|
||||
IMAGE_PREPROCESS_COMMAND += "tinyinitrd;"
|
Loading…
Reference in New Issue
Block a user