Skip to content

Commit 728dd38

Browse files
Merge pull request #1670 from a3f/change-barebox-interrupt-character
driver/bareboxdriver: change default interrupt key to CTRL+D
2 parents d6d20d7 + 6ceaba0 commit 728dd38

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGES.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
Release 25.1 (Unreleased)
2+
-------------------------
3+
4+
New Features in 25.1
5+
~~~~~~~~~~~~~~~~~~~~
6+
7+
- The default interrupt key for the `BareboxDriver` is now CTRL+D (``\x04``)
8+
instead of a line feed (``\n``). barebox v2025.03.0 onwards handles
9+
CTRL+D specially to halt autoboot countdown without running interactive
10+
hooks like bringing up network interfaces automatically.
11+
112
Release 25.0 (Released May 7, 2025)
213
-----------------------------------
314
As announced `before

labgrid/driver/bareboxdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class BareboxDriver(CommandMixin, Driver, CommandProtocol, LinuxBootProtocol):
3232
bindings = {"console": ConsoleProtocol, }
3333
prompt = attr.ib(default="", validator=attr.validators.instance_of(str))
3434
autoboot = attr.ib(default="stop autoboot", validator=attr.validators.instance_of(str))
35-
interrupt = attr.ib(default="\n", validator=attr.validators.instance_of(str))
35+
interrupt = attr.ib(default="\x04", validator=attr.validators.instance_of(str))
3636
bootstring = attr.ib(default=r"Linux version \d", validator=attr.validators.instance_of(str))
3737
password = attr.ib(default="", validator=attr.validators.instance_of(str))
3838
login_timeout = attr.ib(default=60, validator=attr.validators.instance_of(int))

0 commit comments

Comments
 (0)