[ABANDONED] Embed fc-agent binary + --base-image flag#12
Closed
Conversation
- Add build.rs to copy fc-agent to OUT_DIR for include_bytes! - Add src/setup/embedded.rs with FC_AGENT_BINARY and extract_fc_agent() - Update Makefile to build fc-agent as static musl binary first - Remove find_fc_agent_binary() from rootfs.rs, use embedded binary The fc-agent is now built with musl for static linking (works on any Linux 2.6.39+), then embedded into fcvm at compile time via include_bytes!. This enables single-binary distribution. Build order: fc-agent (musl) → copy to target/release → fcvm (embeds it)
Allows overriding the default Ubuntu 24.04 cloud image: - --base-image /path/to/image.qcow2 - use local file - --base-image https://... - download and cache custom URL Default behavior unchanged (Ubuntu 24.04 LTS). Usage: fcvm --base-image /path/to/custom.qcow2 podman run ... fcvm --base-image https://cloud-images.ubuntu.com/.../22.04/... podman run ...
Owner
Author
|
Abandoned - too stale to rebase. Features to be reimplemented on fresh main. |
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.
Status: ABANDONED
This branch is 79 commits behind main and cannot be cleanly rebased. Pushing for historical reference only.
Features (to be reimplemented on fresh main)
include_bytes!--base-imageflag for custom base images--cache-dirflag (uncommitted)Why abandoned
Main has been heavily refactored (rootfs.rs now uses declarative rootfs-plan.toml). These commits would need complete reimplementation.