mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-09-05 05:01:28 +00:00
- No Kernel Panic - Successfully activates verity device in initramfs - Successfully boots on qemu
Implementing dm-verity for a rootfs data partition in Clear Linux
- Use mixer to create a CLR linux image with the following:
- Enable support for dm-verity in the CLR linux image.
- Set “CONFIG_DM_VERITY=y” in the kernel config file and build the linux kernel package.
- Use the sample "release-image-config.json" file provided in this folder.
Ensure that all the bundles listed in this file are included in the mix.
Refer to the verified-boot bundle definition in this repo.
- Run the "dm-verity-impl-1.py" program with input as the path to the .img file.
E.g. "sudo python3 dm-verity-impl-1.py release.img"
- Boot it on QEMU using the qemu startup script with the .img file as input.
E.g. "sudo ./start_qemu.sh release.img"
Not Tested:
- Flash the .img file to a USB stick
E.g "sudo dd if=release.img of=/dev/sdd bs=4M status=progress"
- Boot the target system from the USB stick.