bsod: do not check for color support
When invoked on a running system, bsod would not print the qrcode. The check for "color support" on stdout is pointless, since we're not printing to stdout but to a terminal fd that is opened separately.
This commit is contained in:
+3
-1
@@ -212,7 +212,9 @@ static int display_emergency_message_fullscreen(const char *message) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
r = print_qrcode_full(stream, "Scan the QR code", message, qr_code_start_row, qr_code_start_column, w.ws_col, w.ws_row);
|
||||
r = print_qrcode_full(stream, "Scan the QR code",
|
||||
message, qr_code_start_row, qr_code_start_column, w.ws_col, w.ws_row,
|
||||
/* check_tty= */ false);
|
||||
if (r < 0)
|
||||
log_warning_errno(r, "QR code could not be printed, ignoring: %m");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user