mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-12 03:10:13 +00:00
wic: add wks.in for intel dm-verity
Based on systemd-bootdisk-microcode.wks.in, this adds the dm-verity image similar to the beaglebone wks already in meta-security. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
e23767fc72
commit
0de4f3bfb7
15
wic/systemd-bootdisk-dmverity.wks.in
Normal file
15
wic/systemd-bootdisk-dmverity.wks.in
Normal file
@@ -0,0 +1,15 @@
|
||||
# A dm-verity variant of the regular wks for IA machines. We need to fetch
|
||||
# the partition images from the IMGDEPLOYDIR as the rootfs source plugin will
|
||||
# not recreate the exact block device corresponding with the hash tree. We must
|
||||
# not alter the label or any other setting on the image.
|
||||
# Based on OE-core's systemd-bootdisk.wks and meta-security's beaglebone-yocto-verity.wks.in file
|
||||
#
|
||||
# This .wks only works with the dm-verity-img class.
|
||||
|
||||
part /boot --source bootimg-efi --sourceparams="loader=systemd-boot,initrd=microcode.cpio" --ondisk sda --label msdos --active --align 1024 --use-uuid
|
||||
|
||||
part / --source rawcopy --ondisk sda --sourceparams="file=${IMGDEPLOYDIR}/${DM_VERITY_IMAGE}-${MACHINE}.${DM_VERITY_IMAGE_TYPE}.verity" --use-uuid
|
||||
|
||||
part swap --ondisk sda --size 44 --label swap1 --fstype=swap --use-uuid
|
||||
|
||||
bootloader --ptable gpt --timeout=5 --append=" "
|
||||
Reference in New Issue
Block a user