1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-09 15:08:21 +01:00
meta-rpi-diya/recipes-core/images/core-image-recovery.bb

29 lines
722 B
BlitzBasic
Raw Normal View History

2023-08-01 12:06:45 +02:00
DESCRIPTION = "Recovery initramfs image."
2023-08-01 12:45:14 +02:00
2023-08-01 16:01:20 +02:00
PACKAGE_INSTALL = "recovery-boot e2fsprogs kernel-modules busybox ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
2023-08-01 12:06:45 +02:00
# Do not pollute the initrd image with rootfs features
IMAGE_FEATURES = ""
2023-08-01 14:46:39 +02:00
export IMAGE_BASENAME = "${MLPREFIX}recovery"
2023-08-01 12:06:45 +02:00
IMAGE_NAME_SUFFIX ?= ""
IMAGE_LINGUAS = ""
LICENSE = "MIT"
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
inherit core-image
IMAGE_ROOTFS_SIZE = "8192"
IMAGE_ROOTFS_EXTRA_SPACE = "0"
# Use the same restriction as initramfs-module-install
2023-08-01 15:15:49 +02:00
COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)'
2023-08-01 15:33:24 +02:00
IMAGE_PREPROCESS_COMMAND += "clobber_unused;"
2023-08-01 15:15:49 +02:00
clobber_unused () {
2023-08-01 15:33:24 +02:00
rm -rf ${IMAGE_ROOTFS}/boot/*
2023-08-01 15:15:49 +02:00
}