diff --git a/src/main.rs b/src/main.rs index 61a60d6..70a3944 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2105,6 +2105,10 @@ fn run_target_command( cmd.env(k, v); } + // `Command::output()` defaults stdin to `/dev/null`. Minimal chroots may + // not have device nodes yet, so inherit stdin while still capturing output. + cmd.stdin(Stdio::inherit()); + let output = cmd.output().map_err(|err| { command_spawn_error(root, &resolved_program, &resolved_program_display, err) })?;