Skip to content

Commit b785521

Browse files
guifranchiclaude
andcommitted
Pass LVM config to Instance on construction
Instance::new() initialises lvm with empty strings and relies on with_lvm() being called afterwards to populate it from ManagerConfig, but with_lvm() was never called. As a result, lvcreate was invoked with an empty volume group, producing paths like "/base-default" instead of "runners/base-default", causing all slot boot cycles to fail. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 85bfeb6 commit b785521

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

manager/src/slot.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ pub fn run_slot(config: Arc<ManagerConfig>, role: &Role, idx: usize) -> Result<(
2222
&config.run_path,
2323
role,
2424
idx as u8,
25-
);
25+
)
26+
.with_lvm(&config.lvm);
2627

2728
instance.setup().map_err(|e| {
2829
error!(role = %role.name, idx, error = %e, "slot setup failed");

0 commit comments

Comments
 (0)