Skip to content

initramfs: Explain how to recover a strict boot without fs-verity - #14

Closed
jmarrero-bot wants to merge 3 commits into
mainfrom
bot/2629-strict-verity-hint
Closed

jmarrero-bot wants to merge 3 commits into
mainfrom
bot/2629-strict-verity-hint

Conversation

@jmarrero-bot

@jmarrero-bot jmarrero-bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Follow-up to bootc-dev#2629. bootc 1.16.0–1.16.14 installs onto ext4 made without -O verity now stop in the initramfs, and the only message is "fs-verity is not supported by filesystem". This adds the recovery steps to that error: boot the previous deployment, add ? to the entry (which gives up enforcement), or reinstall onto a filesystem with fs-verity. The text is added only when the command line is strict and measuring fs-verity fails as unsupported.

A second commit documents this in bootc-composefs(7) (a new "Strict boot entries without fs-verity" section: who is affected, the pre-upgrade check, recovery), with small matching fixes to bootc-root-setup.service(5) and the installation guide.

A third commit rewords the bootc install --allow-missing-verity help (and the regenerated install man pages): it adds the ? marker and relaxes the repository policy, but an install onto ext4 created without -O verity still fails with it, as it has since v1.17.0.

The affected set, the recovery testing and the pre-upgrade check are in bootc-dev#2629 (see the summary comment there).

Testing:

  • Booted a 1.16.14 to-filesystem install on ext4 without verity, then switched to a build with this commit. The boot fails with the new text, followed by the original error chain.
  • A normal strict install on ext4 with verity still boots. This was tested with the commit's first revision, which differs only in the message wording.
  • The bootc-initramfs-setup unit tests pass (11).
  • The initramfs commit is a clean cherry-pick onto main. Main's tree at 00574d5 is identical to initramfs: Enforce fs-verity for strict composefs boots bootc-dev/bootc#2629's tested head c53c2fc.
  • Docs commit: rendered through the GitHub markdown API (anchors resolve); the check script is the one from the initramfs: Enforce fs-verity for strict composefs boots bootc-dev/bootc#2629 comment. mdbook and the guide man page generation were not run.
  • Help-text commit, on a devspace (16 cores): just update-generated produced exactly the committed man pages, just validate (fmt, clippy, docs, generated-file check) and just unit-tests (546 passed) passed on the commit's first wording; the final revision changes only the doc comment and man page text, and was regenerated again with no diff.

Generated-by: https://github.com/jmarrero-bot#llms


Review draft in jmarrero-forge, not upstream yet. This section is removed when the PR is opened upstream.

  • Upstream: bootc-dev/bootc, base main
  • Board item: PVTI_lADOFBIZ7c4BlZPrzhGl0eM
  • Fork CI: off; the devspace testing described above is this PR's CI, and upstream CI runs once it is opened there

To review:

  • Approve, or comment /promote on a line of its own, to open it upstream, ready for review. Either covers only the commits pushed so far.
  • If upstream requires DCO, approving also signs off: promote adds Signed-off-by: Joseph Marrero Corchado <[email protected]> to the commits lacking it (the bot's and yours; anyone else's only if you ask), with you as committer.
  • Add a /draft line (in the same comment or before) to open it upstream as a draft (/ready undoes that).
  • Close to drop it.
  • Edit the title and description freely: they become the upstream PR's. Review comments are squashed into the commits they concern, with a reply here.

@jmarrero

jmarrero commented Nov 7, 2026

Copy link
Copy Markdown

we need an additional doc's update which will go into this PR too.

@jmarrero-bot

Copy link
Copy Markdown
Author

we need an additional doc's update which will go into this PR too.

Done in 0e96153 (docs: Explain strict composefs= and recovering a boot without fs-verity), a separate commit on top of the initramfs one. It adds a "Strict boot entries without fs-verity" section to docs/src/bootc-composefs.7.md (who is affected, the pre-upgrade check script from the bootc-dev#2629 comment, recovery matching the new error text), says in the fs-verity bullet that the command line alone decides enforcement, and fixes small matching details in bootc-root-setup.service(5) and the installation guide. New head: 0e96153.

@jmarrero-bot

Copy link
Copy Markdown
Author

Added 6ce0235 (install: Say what --allow-missing-verity does and doesn't cover) as a third commit. It rewords the flag's help: it adds the ? marker and doesn't require fs-verity in the repository, an install onto ext4 created without -O verity still fails, XFS gets it by default, and a UKI's built-in command line overrides it. The install man pages were regenerated with just update-generated. just validate and just unit-tests passed on a devspace. New head: 6ce0235.

The ext4 case looks like a side effect rather than a decision. Since 9ccd87d (v1.17.0), install creates a strict provisional repository whenever the filesystem type supports fs-verity, and honors the flag only after importing the image, so meta.json already fails before that. 1.16 created the repository relaxed when the flag was given. This commit documents today's behavior. Should the code instead honor the flag for the provisional repository? That would be a separate PR, and the help would then drop that sentence.

@jmarrero

jmarrero commented Nov 7, 2026

Copy link
Copy Markdown

/promote

bootc 1.16.0 through 1.16.14 could install with a strict composefs=
argument onto an ext4 filesystem made without -O verity (to-filesystem
or to-existing-root onto a filesystem another tool created). Those
systems booted only because the repository metadata turned enforcement
off. Now that a strict command line always requires fs-verity, their
next deployment stops in the initramfs with just "fs-verity is not
supported by filesystem", which doesn't tell the user that the system
is fine and how to get it booting again.

When the command line is strict and the filesystem can't do fs-verity
at all, say what happened and list the ways out: the previous
deployment, adding '?' to the entry (giving up enforcement), or a
reinstall onto a filesystem with fs-verity.

Generated-by: AI
Signed-off-by: Joseph Marrero Corchado <[email protected]>
The composefs docs still described fs-verity enforcement as something
only a UKI could relax, and didn't say that the kernel command line
alone now decides it. Since a strict composefs= argument always requires
fs-verity, systems that bootc 1.16.0 through 1.16.14 installed onto ext4
without -O verity stop booting on their next deployment. The new
initramfs error points at the recovery options; the docs now say who is
affected, how to check before upgrading, and how to recover, using the
same wording as the error.

The bootc-root-setup.service(5) and installation pages get the matching
small corrections.

Generated-by: AI
Signed-off-by: Joseph Marrero Corchado <[email protected]>
The help said the flag makes fs-verity optional "in case the filesystem
doesn't support it", which reads as a way to install onto any
filesystem. It isn't: bootc picks the provisional repository's policy
from the filesystem type, so on ext4 the repository starts out strict
and the install fails writing meta.json when the filesystem was made
without -O verity, flag or not. What the flag actually changes is the
boot policy (the '?' marker) and the recorded repository policy, and an
image with a UKI ignores it in favor of its own command line.

That ext4 case has failed since 9ccd87d (v1.17.0) started choosing the
policy before inspecting the image; 1.16 created the repository relaxed
when the flag was given. Whether the code should honor the flag there
again is a separate question; this documents what it does today.

Generated-by: AI
Signed-off-by: Joseph Marrero Corchado <[email protected]>
@jmarrero-bot

Copy link
Copy Markdown
Author

Signed off 3 commit(s) with Signed-off-by: Joseph Marrero Corchado <[email protected]> for bootc-dev/bootc's DCO check, on jmarrero's approval #14 (comment) of 6ce02351c885. Same trees; the head is now 44a22886eb9d.

@jmarrero-bot
jmarrero-bot force-pushed the bot/2629-strict-verity-hint branch from 6ce0235 to 44a2288 Compare November 7, 2026 17:21
@jmarrero-bot

Copy link
Copy Markdown
Author

Opened upstream as bootc-dev#2636. Closing this review draft.

@jmarrero

jmarrero commented Nov 7, 2026

Copy link
Copy Markdown

Add a comment in the PR with the rational for "The ext4 case looks like a side effect rather than a decision. Since 9ccd87d (v1.17.0), install creates a strict provisional repository whenever the filesystem type supports fs-verity, and honors the flag only after importing the image, so meta.json already fails before that. 1.16 created the repository relaxed when the flag was given. This commit documents today's behavior. Should the code instead honor the flag for the provisional repository? That would be a separate PR, and the help would then drop that sentence. " It needs some team discussion I think

@jmarrero-bot

Copy link
Copy Markdown
Author

Posted on the upstream PR: bootc-dev#2636 (see the latest comment there).

@jmarrero-bot

Copy link
Copy Markdown
Author

Signed off 3 commit(s) with Signed-off-by: Joseph Marrero Corchado <[email protected]> for bootc-dev/bootc's DCO check, on jmarrero's approval bootc-dev#2636 (review) of ded77d2f19ca. Same trees; the head is now a1bb3ad02d3f.

@jmarrero-bot jmarrero-bot moved this from In Review to Done in Workstream Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants