From: phessler Date: Sat, 28 Jan 2023 18:44:31 +0000 (+0000) Subject: create enough wskbd* device nodes at runtime in the ramdisk so we can set X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c9cd47f35113c030e966e65f0c7dbfe736d96176;p=openbsd 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@ --- 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