Skip to content

docs/filesystem: Mention composefs.enabled = verity #1232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions docs/src/filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,35 @@ that install in `/opt` to operate. However, for maximum immutability the
best approach is simply to symlink just the parts of the `/opt` needed
into `/var`. See the section on `/opt` in [Image building and configuration
guidance](building/guidance.md) for a more concrete example.

## Increased filesystem integrity with fsverity

The bootc project uses [composefs](https://github.com/composefs/composefs)
by default for the root filesystem (using ostree's support for composefs).
However, the default configuration as recommended for base images
uses composefs in a mode that does not require signatures or fsverity.

bootc supports with ostree's model of hard requiring fsverity
for underlying objects. Enabling this also causes bootc
to error out at install time if the target filesystem does
not enable fsverity.

To enable this, inside your container build update
`/usr/lib/ostree/prepare-root.conf` with:

```
[composefs]
enabled = verity
```

At the current time, there is no default recommended
mechanism to check the integrity of the upper composefs.
For more information about this, see
[this tracking issue](https://github.com/bootc-dev/bootc/issues/1190).

### Enabling fsverity across upgrades

At the current time the integration is only for
installation; there is not yet support for automatically ensuring that
fsverity is enabled when upgrading from a state with
`composefs.enabled = yes` to `composefs.enabled = verity`.