Skip to content

feat: Use explicit kraftfile type if specified#290

Merged
jedevc merged 1 commit intostagingfrom
jedevc/rootfs-build-use-type
Apr 23, 2026
Merged

feat: Use explicit kraftfile type if specified#290
jedevc merged 1 commit intostagingfrom
jedevc/rootfs-build-use-type

Conversation

@jedevc
Copy link
Copy Markdown
Member

@jedevc jedevc commented Apr 23, 2026

Follow-up to #245 (comment)

No need to do source type detection if the kraftfile has an explicit type - we should just use that.

Additionally, this adds some more tests to check that all the rootfs builds produce reasonable results.

@jedevc jedevc requested a review from craciunoiuc April 23, 2026 10:19
kraftfile.SourceTypeErofs: kraftfile.FsTypeErofs,
}
if exp, ok := expected[opts.Rootfs.Type]; ok && opts.Rootfs.Format != exp {
// TODO: maybe we could be smart and convert this
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theoretically we have readers/writes for them, so this means we could covert them. right? 👀

Copy link
Copy Markdown
Member

@craciunoiuc craciunoiuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good here. Thanks!

Reviewed-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.com
Approved-by: Cezar Craciunoiu cezar.craciunoiu@unikraft.com

@craciunoiuc
Copy link
Copy Markdown
Member

Static check failed :(((

No need to do source type detection if the kraftfile has an explicit
`type` - we should just use that.

Additionally, this adds some more tests to check that all the rootfs
builds produce reasonable results.

Signed-off-by: Justin Chadwell <justin@unikraft.com>
@jedevc jedevc force-pushed the jedevc/rootfs-build-use-type branch from 2312812 to ab4b9e7 Compare April 23, 2026 15:22
@jedevc jedevc merged commit 45b71b8 into staging Apr 23, 2026
9 checks passed
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.

2 participants