EQTY LabDocs

vcomp-initrd

Kernel command-line parameters for the initrd that verifies the CRT root filesystem before boot.

View as Markdown

vcomp-initrd is the initial ramdisk that boots a CRT. EQTY builds it deterministically, so its measurement is reproducible. Before handing over to the root filesystem it checks the filesystem against the hash on the kernel command line, sets up encrypted storage and derives the signing keys from the TEE. Its place in the boot chain is described in the Deployment Overview.

The initrd is configured entirely through kernel command-line parameters. On bare metal, vcomp-qemu-crt generates them from its JSON configuration.

Root filesystem

ParameterDefaultDescription
rootfs_typerawHow the root filesystem is passed and checked. See Root filesystem types.
rootfs_hash—SHA256 hash of the root filesystem. If empty, the integrity check is skipped and the initrd drops to a debug shell.
rootfs_sourcesdaBlock device holding the root filesystem, e.g. sda, sdb1.
rootfs_targettmpfsWhere the verified content is formatted, encrypted and extracted: tmpfs or a block device such as /dev/sda2.
rootfs_target_size10000MSize of rootfs_target. Must be large enough to hold the extracted archive.
rootfs_integritytrueEnable dm-integrity on the extracted root filesystem. Adds protection, but increases boot time on large filesystems.
rootfs_verity_rootfssda1Device holding the root filesystem data, for dm-verity.
rootfs_verity_hashessda2Device holding the verity hash tree, for dm-verity.

Root filesystem types

TypeBehavior
dm-verityRead-only filesystem, verified against the hash tree on every read. Uses rootfs_verity_rootfs and rootfs_verity_hashes.
tar-as-blockA tar+gz archive passed directly as a block device. It is hashed, checked, then extracted to rootfs_target. The file must be a multiple of 1024 bytes, or the hash fails.
tar-on-fsA block device with an ext4 filesystem containing rootfs.tar.gz, which is hashed, checked and extracted like tar-as-block.
blockA block device containing the filesystem, copied to rootfs_target.
rawThe block device is attached directly as the root filesystem, with no integrity protection or encryption. Debug only; requires tee_debug=true.

Signing keys

ParameterDefaultDescription
tee_signing_curveSECP256r1Curve for the signing keys: SECP256r1 (recommended) or SECP256k1. ED25519 is stubbed out but not implemented.

How the key is produced depends on the TEE the initrd detects:

TEEDetected byKey derivation
AMD SEV-SNP/dev/sev-guestDerived with snpguest key kdf_key vcek: deterministic and bound to the TEE
Intel TDX/dev/tdx_guestRandom key
Azure confidential VM/dev/tpm0Random key
None—Random key

Debug parameters

These parameters create insecure configurations. Unless tee_debug=true, the initrd halts if any of them is set, if rootfs_type=raw, or if rootfs_hash is empty.

ParameterDefaultDescription
tee_debugfalseAllow the insecure settings below, with warnings instead of halting.
tee_generatefakekeyfalseGenerate a random key instead of deriving it from the TEE. Attestation reports show that fake keys are in use.
rootfs_skipfshashfalseSkip hashing the root filesystem, to speed up boot.
tee_allow_no_teefalseContinue booting without a TEE instead of rebooting or halting.