Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# Copyright (C) 2020 BayLibre SAS
|
||||
# Author: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|
||||
#
|
||||
# short-description: Create a u-SD image for beaglebone-black with dm-verity
|
||||
# A dm-verity variant of the regular wks for beaglebone black. We need to fetch
|
||||
# the partition images from the DEPLOY_DIR_IMAGE 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.
|
||||
#
|
||||
# This .wks only works with the dm-verity-img class.
|
||||
|
||||
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4 --fixed-size 32 --sourceparams="loader=u-boot" --use-uuid
|
||||
part / --source rawcopy --ondisk mmcblk0 --sourceparams="file=${IMGDEPLOYDIR}/${DM_VERITY_IMAGE}-${MACHINE}.${DM_VERITY_IMAGE_TYPE}.verity"
|
||||
bootloader --append="console=ttyS0,115200"
|
||||
@@ -0,0 +1,18 @@
|
||||
# short-description: Create an EFI disk image with systemd-boot and separate hash dm-verity
|
||||
# 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 and separate hash data. (DM_VERITY_SEPARATE_HASH)
|
||||
|
||||
part /boot --source bootimg-efi --sourceparams="loader=systemd-boot,initrd=microcode.cpio" --ondisk sda --label msdos --active --align 1024 --use-uuid
|
||||
|
||||
# include the root+hash part with the dynamic hash/UUIDs from the build.
|
||||
include ${STAGING_VERITY_DIR}/${IMAGE_BASENAME}.${DM_VERITY_IMAGE_TYPE}.wks.in
|
||||
|
||||
# add "console=ttyS0,115200" or whatever you need to the --append="..."
|
||||
bootloader --ptable gpt --timeout=5 --append="root=/dev/mapper/rootfs"
|
||||
|
||||
part swap --ondisk sda --size 44 --label swap1 --fstype=swap --use-uuid
|
||||
@@ -0,0 +1,17 @@
|
||||
# short-description: Create an EFI disk image with systemd-boot and dm-verity
|
||||
# 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.
|
||||
# Also note that the use of microcode.cpio introduces a meta-intel layer dependency.
|
||||
|
||||
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