---
title: "vcomp-initrd"
description: "Kernel command-line parameters for the initrd that verifies the CRT root filesystem before boot."
source: "Verifiable Compute"
---
`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](../deployment/overview.mdx#system-architecture).

The initrd is configured entirely through kernel command-line parameters. On bare metal,
[vcomp-qemu-crt](./vcomp-qemu-crt.mdx#kernel-command-line-parameters) generates them from its JSON
configuration.

## Root filesystem

| Parameter              | Default  | Description                                                                                                           |
| ---------------------- | -------- | --------------------------------------------------------------------------------------------------------------------- |
| `rootfs_type`          | `raw`    | How the root filesystem is passed and checked. See [Root filesystem types](#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_source`        | `sda`    | Block device holding the root filesystem, e.g. `sda`, `sdb1`.                                                         |
| `rootfs_target`        | `tmpfs`  | Where the verified content is formatted, encrypted and extracted: `tmpfs` or a block device such as `/dev/sda2`.      |
| `rootfs_target_size`   | `10000M` | Size of `rootfs_target`. Must be large enough to hold the extracted archive.                                          |
| `rootfs_integrity`     | `true`   | Enable dm-integrity on the extracted root filesystem. Adds protection, but increases boot time on large filesystems.  |
| `rootfs_verity_rootfs` | `sda1`   | Device holding the root filesystem data, for `dm-verity`.                                                             |
| `rootfs_verity_hashes` | `sda2`   | Device holding the verity hash tree, for `dm-verity`.                                                                 |

### Root filesystem types

| Type           | Behavior                                                                                                                                                  |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `dm-verity`    | Read-only filesystem, verified against the hash tree on every read. Uses `rootfs_verity_rootfs` and `rootfs_verity_hashes`.                               |
| `tar-as-block` | A 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-fs`    | A block device with an `ext4` filesystem containing `rootfs.tar.gz`, which is hashed, checked and extracted like `tar-as-block`.                           |
| `block`        | A block device containing the filesystem, copied to `rootfs_target`.                                                                                      |
| `raw`          | The block device is attached directly as the root filesystem, with no integrity protection or encryption. **Debug only**; requires `tee_debug=true`.       |

## Signing keys

| Parameter           | Default     | Description                                                                         |
| ------------------- | ----------- | ----------------------------------------------------------------------------------- |
| `tee_signing_curve` | `SECP256r1` | Curve 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:

| TEE                       | Detected by      | Key derivation                                                 |
| ------------------------- | ---------------- | -------------------------------------------------------------- |
| AMD SEV-SNP               | `/dev/sev-guest` | Derived with `snpguest key kdf_key vcek`: deterministic and bound to the TEE |
| Intel TDX                 | `/dev/tdx_guest` | Random key                                                     |
| Azure confidential VM     | `/dev/tpm0`      | Random 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.

| Parameter             | Default | Description                                                                    |
| --------------------- | ------- | ------------------------------------------------------------------------------ |
| `tee_debug`           | `false` | Allow the insecure settings below, with warnings instead of halting.           |
| `tee_generatefakekey` | `false` | Generate a random key instead of deriving it from the TEE. Attestation reports show that fake keys are in use. |
| `rootfs_skipfshash`   | `false` | Skip hashing the root filesystem, to speed up boot.                            |
| `tee_allow_no_tee`    | `false` | Continue booting without a TEE instead of rebooting or halting.                |

<Alert variant="warning" title="Production configuration">
  In production leave `tee_debug`, `tee_generatefakekey`, `rootfs_skipfshash` and
  `tee_allow_no_tee` at `false`, always set `rootfs_hash`, and use `dm-verity` or a `tar-*`
  root filesystem type.
</Alert>