agama/live/live-root
Ladislav Slezák 1ebae690e8
Display the checkmedia result and wait on a key press on all consoles (#3573)
## Problem

- OpenQA has some troubles with pressing a key to continue when using
the media check boot option with both normal console and serial console
(when using the `console=tty console=ttyS0` boot options).
- https://bugzilla.suse.com/show_bug.cgi?id=1267263

## Solution

- Display the check media result on all configured consoles
- Wait for pressing a key on any console

## Testing

Tested manually, works fine in all these cases:

- System with a standard system console (no extra boot options provided)
- System with a standard console and a serial console
- The standard console is the main console (booted with `console=ttyS0
console=tty`)
- The serial console is the main console (booted with `console=tty
console=ttyS0`)

## Screenshots

Tested with VirtualBox with a virtual serial port. The big window is the
main VBox VM window, the small window is a virtual serial console
attached to a virtual serial port of that VM. Booted with the
`console=tty console=ttyS0` options. The checkmedia output is displayed
only on the main console (ttyS0) but the result and the prompt is
displayed on all consoles. Pressing a key on *any console* continues
booting the system.

<img width="1276" height="1009" alt="image"
src="https://github.com/user-attachments/assets/4cfd26b9-54bc-4432-9281-e1d45dcb29cf"
/>
2026-06-03 12:59:17 +02:00
..
etc Fixed medium check (bsc#1262311) 2026-04-23 10:33:07 +02:00
root live: Added agama-screenshot helper script (#3537) 2026-06-01 16:50:59 +02:00
usr Display the checkmedia result and wait on a key press on all consoles (#3573) 2026-06-03 12:59:17 +02:00
var/lib/AccountsService/users Adapted to change in live root main directory 2025-06-03 09:36:39 +02:00