Harden NVIDIA boot logging on live ISO

This commit is contained in:
Mikhail Chusavitin
2026-03-31 11:37:21 +03:00
parent c850b39b01
commit 4f9b6b3bcd
2 changed files with 14 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ mkdir -p "$(dirname "$log_file")"
serial_sink() {
local tty="$1"
if [ -w "$tty" ]; then
cat > "$tty"
cat > "$tty" 2>/dev/null || true
else
cat > /dev/null
fi