Skip to content

feat(eif): add in-tree EIF repack path (eif2eif) - #718

Draft
jmt-lab wants to merge 1 commit into
feat/eif-signing-04-buildsys-rpm2eiffrom
feat/eif-signing-05-eif2eif-repack
Draft

feat(eif): add in-tree EIF repack path (eif2eif)#718
jmt-lab wants to merge 1 commit into
feat/eif-signing-04-buildsys-rpm2eiffrom
feat/eif-signing-05-eif2eif-repack

Conversation

@jmt-lab

@jmt-lab jmt-lab commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Add eif2eif, a new Dockerfile-invoked tool that repackages an existing
EIF: rewrites the CA bundle / root.json inside the EIF's rootfs, rebuilds
erofs + dm-verity, pins the cmdline to the new verity root hash, and
produces a freshly signed .eif using the [eif] signing profile from the
prior commit.

Wires the imgrepack Dockerfile stage to dispatch to eif2eif when
IMAGE_FORMAT=eif and img2img otherwise. Plumbs KERNEL_PARAMETERS and
TWOLITER_VERSION as build args so the rebuilt EIF's cmdline and
BuildToolVersion metadata match what rpm2eif emitted at first build.

Removes the EifRepackUnsupported early-fail in buildsys::repack_variant
now that a real repack path exists.

@jmt-lab jmt-lab changed the title feat/eif signing 05 eif2eif repack feat(eif): add in-tree EIF repack path (eif2eif) Aug 12, 2026
Add `eif2eif`, a new Dockerfile-invoked tool that repackages an existing
EIF: rewrites the CA bundle / root.json inside the EIF's rootfs, rebuilds
erofs + dm-verity, pins the cmdline to the new verity root hash, and
produces a freshly signed .eif using the [eif] signing profile from the
prior commit.

Wires the imgrepack Dockerfile stage to dispatch to `eif2eif` when
IMAGE_FORMAT=eif and `img2img` otherwise. Plumbs KERNEL_PARAMETERS and
TWOLITER_VERSION as build args so the rebuilt EIF's cmdline and
BuildToolVersion metadata match what rpm2eif emitted at first build.

Removes the `EifRepackUnsupported` early-fail in `buildsys::repack_variant`
now that a real repack path exists.
@jmt-lab
jmt-lab force-pushed the feat/eif-signing-05-eif2eif-repack branch from a8cbd5d to 513fcf6 Compare August 12, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant