Skip to content

Commit

Permalink
rust/bwrap: log fusermount -u errors to stderr
Browse files Browse the repository at this point in the history
I believe cosa is hitting an error in this code path, but we can't
inspect the error because there's no journald running in supermin:

coreos/coreos-assembler#3848

We don't gain much by printing this error to the journal since it
shouldn't be very common. Print it on stderr instead where it's more
likely to have visibility.
  • Loading branch information
jlebon committed Aug 13, 2024
1 parent cd2cfd6 commit 044feec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/bwrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl Drop for RoFilesMount {
})
.err()
.map(|e| {
systemd::journal::print(4, &format!("{}", e));
eprintln!("{}", e);
})
.is_none();
if !success {
Expand Down

0 comments on commit 044feec

Please sign in to comment.