Skip to content

Commit

Permalink
Merge pull request #3743 from jbaublitz/bug-clevis-bind
Browse files Browse the repository at this point in the history
Capture stderr on clevis bind failure
  • Loading branch information
mulkieran authored Jan 13, 2025
2 parents 0093472 + a3799ff commit a402e99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engine/strat_engine/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,9 @@ pub fn clevis_luks_bind(
execute_cmd(&mut cmd)
}
Either::Right(ref key) => {
cmd.stdin(Stdio::piped());
cmd.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::piped());
let mut child = cmd.spawn()?;
let stdin = child.stdin.as_mut().ok_or_else(|| {
StratisError::Msg(
Expand Down

0 comments on commit a402e99

Please sign in to comment.