diff options
| -rw-r--r-- | meta/recipes-core/images/secure-core-image-initramfs.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-core/images/secure-core-image-initramfs.bb b/meta/recipes-core/images/secure-core-image-initramfs.bb new file mode 100644 index 0000000..e0f25b0 --- /dev/null +++ b/meta/recipes-core/images/secure-core-image-initramfs.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | DESCRIPTION = "Small image capable of booting a device. The kernel includes \ | ||
| 2 | the Minimal RAM-based Initial Root Filesystem (initramfs), which finds the \ | ||
| 3 | first 'init' program more efficiently." | ||
| 4 | LICENSE = "MIT" | ||
| 5 | |||
| 6 | ROOTFS_BOOTSTRAP_INSTALL_append += "\ | ||
| 7 | ${@bb.utils.contains("DISTRO_FEATURES", "tpm2", \ | ||
| 8 | "packagegroup-tpm2-initramfs", "", d)} \ | ||
| 9 | ${@bb.utils.contains("DISTRO_FEATURES", "ima", \ | ||
| 10 | "packagegroup-ima-initramfs", "", d)} \ | ||
| 11 | ${@bb.utils.contains("DISTRO_FEATURES", "encrypted-storage", \ | ||
| 12 | "packagegroup-encrypted-storage-initramfs", "", d)} \ | ||
| 13 | " | ||
| 14 | |||
| 15 | PACKAGE_INSTALL = "\ | ||
| 16 | initramfs-secure-core \ | ||
| 17 | ${VIRTUAL-RUNTIME_base-utils} \ | ||
| 18 | base-passwd \ | ||
| 19 | ${ROOTFS_BOOTSTRAP_INSTALL} \ | ||
| 20 | " | ||
| 21 | |||
| 22 | # Do not pollute the initrd image with rootfs features | ||
| 23 | IMAGE_FEATURES = "" | ||
| 24 | |||
| 25 | export IMAGE_BASENAME = "secure-core-image-initramfs" | ||
| 26 | IMAGE_LINGUAS = "" | ||
| 27 | |||
| 28 | IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" | ||
| 29 | |||
| 30 | inherit core-image | ||
| 31 | |||
| 32 | IMAGE_ROOTFS_SIZE = "8192" | ||
| 33 | IMAGE_ROOTFS_EXTRA_SPACE = "0" | ||
| 34 | |||
| 35 | BAD_RECOMMENDATIONS += "busybox-syslog" | ||
