Repository navigation
Conversation
mkosi has built every guest-OS release since the Yocto backend was deprecated. Remove os/yocto, its eight submodules, the guest-os.yml workflow and the os-yocto/os-deps/os-image-yocto/os-repro-check-yocto make targets. The mkosi build still read 41 files from the Yocto layers. Move them, byte for byte, into os/common: kernel/patches/ guest kernel patches ovmf/patches/ EDK2 patches zfs/patches/ OpenZFS patch sysbox/ patches, generated protobufs, units, config containerd/ containerd and stargz-snapshotter config nvidia-container-toolkit/config.toml nvattest/ pinned regorus Cargo.lock, prepare drop-in initramfs/init rootfs/chrony.conf, rootfs/tee-simulator/ scripts/audit-aws-ec2-image-hardening.sh Their content is unchanged and they keep their REUSE attribution. Component cache keys now hash these directories, plus os/common/nvidia, which the nvidia component installs but did not hash before. The acceptance checks that compared mkosi with the Yocto recipes (kernel series, OVMF SRCREV, the nvidia staging list) go away. versions.env now records why the OVMF revision is pinned. tools/dev-stack.sh builds guests with the mkosi container. Docs and comments no longer refer to a second backend. Files under mkosi.skeleton are left alone because they end up in the rootfs. Signed-off-by: Kevin Wang <wy721@qq.com>
Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
force-pushed
the
chore/remove-yocto
branch
from
December 2, 2026 02:00
897e6af to
8c42c8d
Compare
dstackup, dstack-cloud, tools/dev-stack.sh and the docs download guest images from guest-os-v<version> releases, but the mkosi workflow published them as mkosi-os-v<version>, so dstackup never found a 0.6+ image. The separate prefix only kept the mkosi trigger apart from the Yocto workflow, which is gone. Tag guest-OS releases os-v<version>, matching kms-v, gateway-v and the other components. The 0.6.0 to 0.6.7 releases stay where they are and are referenced by others, so the consumers pick mkosi-os-v<version> for those versions and os-v<version> after. dstackup also took the first .tar.gz asset that was not a UKI or dev image. GitHub lists dstack-<v>-kernel-devel.tar.gz first, so it would have downloaded the kernel build tree instead of the image; skip it. Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
force-pushed
the
chore/remove-yocto
branch
from
December 2, 2026 02:03
8c42c8d to
28d166a
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes
os/yocto, its eight submodules, theguest-os.ymlworkflow, and theos-yocto/os-deps/os-image-yocto/os-repro-check-yoctomake targets. Guest-OS releases have been built only by mkosi for some time.mkosi still read 41 files from the Yocto layers: kernel, OVMF and ZFS patches, Sysbox, containerd, NVIDIA Container Toolkit and nvattest files, the initramfs
init,chrony.conf, the TEE simulator units, and the AWS hardening audit script. They move toos/common/unchanged (all renames are 100%) and keep their REUSE attribution. Seeos/common/README.mdfor the layout.Other changes:
os/common/nvidia, which it installs but did not hash before.SRCREV, and the nvidia staging list.versions.envnow records why OVMF is pinned to edk2-stable202502.tools/dev-stack.shnow builds guests with the mkosi container.make os-depsneeds: after pulling, the leftover submodule directories are untracked files and the mkosi build refuses to run.mkosi.skeleton/was not touched because those files are copied into the rootfs.Release tag:
os-v<version>dstackup,dstack-cloud,tools/dev-stack.shand the docs download guest images fromguest-os-v<version>releases, but the mkosi workflow publishes them asmkosi-os-v<version>, sodstackup installnever found a 0.6+ image. The separate prefix only kept this workflow's trigger apart from the Yocto one. Guest-OS releases are now taggedos-v<version>, likekms-vandgateway-v.The 0.6.0–0.6.7 releases keep their
mkosi-os-vtags because external docs and evidence files link to them (NEAR MPC, 0g, Antseed, Phala Cloud). The consumers choosemkosi-os-vfor those versions andos-vafter.dstackupalso skipped nothing but UKI and dev assets, and GitHub listsdstack-<v>-kernel-devel.tar.gzfirst, so it would have downloaded the kernel build tree; it now skips that too (tested).Phala Cloud links Guest OS releases as
mkosi-os-v${version}(teehouse-uidstack-utils,os_image_registry.pyfor RCs) and needs the same version split before 0.6.8.Verification
os/mkosi/build.sh lint,os/tests/*.sh,reuse lint,prekon the changed files, andgh actions-lock --no-fixall pass.make os-image(mkosi container,JOBS=30) fromnext(edff019) and from this branch, withSOURCE_DATE_EPOCHandDSTACK_BUILD_GIT_REVISIONpinned to the same values. Every file in the image directory (bzImage, initramfs, OVMF, verity rootfs, disk.raw, all measurement CBORs) is byte-identical. The only difference isgit_revisioninmetadata.json.