diff options
Diffstat (limited to 'wic')
-rw-r--r-- | wic/beaglebone-yocto-verity.wks.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/wic/beaglebone-yocto-verity.wks.in b/wic/beaglebone-yocto-verity.wks.in new file mode 100644 index 0000000..cd1702e --- /dev/null +++ b/wic/beaglebone-yocto-verity.wks.in | |||
@@ -0,0 +1,15 @@ | |||
1 | # SPDX-License-Identifier: MIT | ||
2 | # | ||
3 | # Copyright (C) 2020 BayLibre SAS | ||
4 | # Author: Bartosz Golaszewski <bgolaszewski@baylibre.com> | ||
5 | # | ||
6 | # A dm-verity variant of the regular wks for beaglebone black. We need to fetch | ||
7 | # the partition images from the DEPLOY_DIR_IMAGE as the rootfs source plugin will | ||
8 | # not recreate the exact block device corresponding with the hash tree. We must | ||
9 | # not alter the label or any other setting on the image. | ||
10 | # | ||
11 | # This .wks only works with the dm-verity-img class. | ||
12 | |||
13 | part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4 --size 16 --sourceparams="loader=u-boot" --use-uuid | ||
14 | part / --source rawcopy --ondisk mmcblk0 --sourceparams="file=${DEPLOY_DIR_IMAGE}/${DM_VERITY_IMAGE}-${MACHINE}.${DM_VERITY_IMAGE_TYPE}.verity" | ||
15 | bootloader --append="console=ttyS0,115200" | ||