blob: e400593bb62fd4038f22637012eeb81f92a5aafa [file] [log] [blame]
Patrick Williams520786c2023-06-25 16:20:36 -05001# short-description: Create an EFI disk image with systemd-boot and separate hash dm-verity
2# A dm-verity variant of the regular wks for IA machines. We need to fetch
3# the partition images from the IMGDEPLOYDIR as the rootfs source plugin will
4# not recreate the exact block device corresponding with the hash tree. We must
5# not alter the label or any other setting on the image.
6# Based on OE-core's systemd-bootdisk.wks and meta-security's beaglebone-yocto-verity.wks.in file
7#
8# This .wks only works with the dm-verity-img class and separate hash data. (DM_VERITY_SEPARATE_HASH)
9
10part /boot --source bootimg-efi --sourceparams="loader=systemd-boot,initrd=microcode.cpio" --ondisk sda --label msdos --active --align 1024 --use-uuid
11
12# include the root+hash part with the dynamic hash/UUIDs from the build.
13include ${STAGING_VERITY_DIR}/${IMAGE_BASENAME}.${DM_VERITY_IMAGE_TYPE}.wks.in
14
15# add "console=ttyS0,115200" or whatever you need to the --append="..."
16bootloader --ptable gpt --timeout=5 --append="root=/dev/mapper/rootfs"
17
18part swap --ondisk sda --size 44 --label swap1 --fstype=swap --use-uuid