From c9cd47f35113c030e966e65f0c7dbfe736d96176 Mon Sep 17 00:00:00 2001 From: phessler Date: Sat, 28 Jan 2023 18:44:31 +0000 Subject: [PATCH] create enough wskbd* device nodes at runtime in the ramdisk so we can set the keyboard layout on all of them during install. tested with a Thinkpad X13s with a silly amount of kezboards connected. OK miod@ kn@ --- distrib/miniroot/install.sub | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 857b9f188d8..9140c333c1e 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1222 2023/01/18 10:30:20 kn Exp $ +# $OpenBSD: install.sub,v 1.1223 2023/01/28 18:44:31 phessler Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer @@ -2114,6 +2114,8 @@ set_term() { else [[ -x /sbin/kbd ]] || return _layouts=$(bsort $(kbd -l | egrep -v "^(user|tables|encoding)")) + # Ensure all connected keyboards get the same encoding + make_dev $(scan_dmesg '/^wskbd[0-9]* /s/ .*//p') while :; do ask "Choose your keyboard layout ('?' or 'L' for list)" default case $resp in -- 2.20.1