blob: f9ea3762d7e122733ccb890aa92d2069c2157024 [file] [log] [blame]
Andrew Geissler1fe918a2020-05-15 14:16:47 -05001DESCRIPTION = "Simple initramfs image for mounting the rootfs over the verity device mapper."
2
3# We want a clean, minimal image.
4IMAGE_FEATURES = ""
5
6PACKAGE_INSTALL = " \
7 initramfs-dm-verity \
8 base-files \
9 busybox \
10 util-linux-mount \
11 udev \
12 cryptsetup \
13 lvm2-udevrules \
14"
15
16# Can we somehow inspect reverse dependencies to avoid these variables?
17do_rootfs[depends] += "${DM_VERITY_IMAGE}:do_image_${DM_VERITY_IMAGE_TYPE}"
18
19IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
20
21inherit core-image
22
23deploy_verity_hash() {
24 install -D -m 0644 ${DEPLOY_DIR_IMAGE}/${DM_VERITY_IMAGE}-${MACHINE}.${DM_VERITY_IMAGE_TYPE}.verity.env ${IMAGE_ROOTFS}/${datadir}/dm-verity.env
25}
26ROOTFS_POSTPROCESS_COMMAND += "deploy_verity_hash;"