blob: a275a488912a3133b7409af571f8d2b04735036e [file] [log] [blame]
Andrew Geisslerd1d22e62020-10-16 10:14:32 -05001# A dm-verity variant of the regular wks for IA machines. We need to fetch
2# the partition images from the IMGDEPLOYDIR as the rootfs source plugin will
3# not recreate the exact block device corresponding with the hash tree. We must
4# not alter the label or any other setting on the image.
5# Based on OE-core's systemd-bootdisk.wks and meta-security's beaglebone-yocto-verity.wks.in file
6#
7# This .wks only works with the dm-verity-img class.
Andrew Geisslerdc9d6142023-05-19 09:38:37 -05008# Also note that the use of microcode.cpio introduces a meta-intel layer dependency.
Andrew Geisslerd1d22e62020-10-16 10:14:32 -05009
10part /boot --source bootimg-efi --sourceparams="loader=systemd-boot,initrd=microcode.cpio" --ondisk sda --label msdos --active --align 1024 --use-uuid
11
12part / --source rawcopy --ondisk sda --sourceparams="file=${IMGDEPLOYDIR}/${DM_VERITY_IMAGE}-${MACHINE}.${DM_VERITY_IMAGE_TYPE}.verity" --use-uuid
13
14part swap --ondisk sda --size 44 --label swap1 --fstype=swap --use-uuid
15
16bootloader --ptable gpt --timeout=5 --append=" "