Skip to content

Commit 2e81362

Browse files
committed
fix(blockdev): include "internals" when spawning loopback-cleanup-helper
Without the "internals" prefix, bootc fails to spawn the loopback-cleanup-helper because the helper is only available under the `bootc internals` subcommand. This patch updates the spawned command to include "internals" before the helper name so it runs as intended. Signed-off-by: Sam Dasilva <[email protected]>
1 parent 3e63596 commit 2e81362

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/blockdev/src/blockdev.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,12 @@ impl LoopbackDevice {
251251

252252
// Create the helper process
253253
let mut cmd = Command::new(bootc_path);
254-
cmd.args(["loopback-cleanup-helper", "--device", device_path]);
254+
cmd.args([
255+
"internals",
256+
"loopback-cleanup-helper",
257+
"--device",
258+
device_path,
259+
]);
255260

256261
// Set environment variable to indicate this is a cleanup helper
257262
cmd.env("BOOTC_LOOPBACK_CLEANUP_HELPER", "1");

0 commit comments

Comments
 (0)