Commit 6ceaba0
committed
driver/bareboxdriver: change default interrupt key to CTRL+D
For developer convenience, barebox v2022.11.0 onwards brings up network
interfaces automatically in the background when the boot is aborted by
user input. By the time a user then runs boot net for example, the
seconds it takes for an Ethernet link to be established will have passed.
The effects of this have already been seen in Labgrid;
Commit 6f7bf66 ("driver/bareboxdriver: silence barebox in
_await_prompt() and unsilence on boot()") changes the log level to
suppress "ethX: N Mbps ... link detected" messages, but it leaves
another problem unaddressed: A system that Labgrid aborts to run the
boot command now behaves differently to a system that was left to boot
normally, because network adapters are reconfigured that normally aren't.
This bit me while trying to use Labgrid to debug a network issue in
Linux as barebox ifup changed the Linux behavior.
barebox v2025.03.0 introduces a new halt state that can be entered by
ctrl-d that skips these automatic hooks. Using it should not introduce
regressions for existing users, regardless of barebox version:
- Prior to barebox v2025.01.0, the only options for an abort key were
ctrl-c or any and both line feed and CTRL+D behave the same with either
option.
- After v2025.01.0, global.autoboot_abort_key can be set to an arbitrary
single printable ASCII key and it seems not possible to set a new line
this way.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>1 parent b1b4021 commit 6ceaba0
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
1 | 12 | | |
2 | 13 | | |
3 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments