From a83527b69a41dad4183a7b53429ec30b2b959e03 Mon Sep 17 00:00:00 2001 From: "claude[bot]" Date: Thu, 5 Mar 2026 04:33:25 +0000 Subject: [PATCH] fix: restore ipv6_prefix to vm_state.config during snapshot run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the missing `vm_state.config.ipv6_prefix` restoration alongside other config fields in the snapshot run path. Without this, cascaded snapshots (creating a snapshot from a clone) lose the prefix because `build_snapshot_config()` reads from `vm_state.config`. Also fix README CLI reference: `` → `` to match the actual input format (4 colon-separated hex groups, not CIDR notation). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- README.md | 2 +- src/commands/snapshot.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 74dcde2a..8457cf5b 100644 --- a/README.md +++ b/README.md @@ -336,7 +336,7 @@ See [`Containerfile`](Containerfile) for the complete dependency list used in CI --portable-volumes Path-hash inodes for cross-machine snapshot/restore --rootfs-size Minimum free space on rootfs (default: 10G) --no-snapshot Disable automatic snapshot creation ---ipv6-prefix Use explicit /64 prefix for routed mode (skips auto-detect and MASQUERADE) +--ipv6-prefix Use explicit /64 prefix for routed mode (skips auto-detect and MASQUERADE) ``` Run `fcvm --help` or `fcvm --help` for full options. diff --git a/src/commands/snapshot.rs b/src/commands/snapshot.rs index c43d4690..d7ec0006 100644 --- a/src/commands/snapshot.rs +++ b/src/commands/snapshot.rs @@ -794,6 +794,7 @@ pub async fn cmd_snapshot_run(args: SnapshotRunArgs) -> Result<()> { vm_state.config.user = snapshot_config.metadata.user.clone(); vm_state.config.port_mappings = port_mappings; vm_state.config.network_mode = network_mode; + vm_state.config.ipv6_prefix = snapshot_config.metadata.ipv6_prefix.clone(); vm_state.config.tty = tty_mode; vm_state.config.interactive = interactive;