-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtme-ng: fix sending kernel log to stderr in script mode
With commit f3749da ("virtme-ng: redirect kernel log to stderr in interactive mode") we have broken the kernel log redirection in script mode: if the kernel panics now we don't see the log anymore on stderr. Fix this by distinguishing the proper console inside the guest between interactive mode vs script mode. Test case: $ vng -vr -- "echo c > /proc/sysrq-trigger" Fixes: f3749da ("virtme-ng: redirect kernel log to stderr in interactive mode") Signed-off-by: Andrea Righi <[email protected]>
- Loading branch information
Andrea Righi
committed
Feb 13, 2024
1 parent
ae47c86
commit eacf6bb
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters