Additional modular drivers (e.g. ohci_pci, hid) may be needed for entering a disk encryption passphrase or for the panic shell. Closes: #639876 Signed-off-by: Ben Hutchings <ben@decadent.org.uk> --- hook-functions | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hook-functions b/hook-functions index 5da0cde..42cee54 100644 --- a/hook-functions +++ b/hook-functions @@ -418,6 +418,17 @@ dep_add_modules_mount() add_loaded_modules 'phy[-_]*' add_loaded_modules 'pinctrl[-_]*' + # Sys walk keyboards. We identify keyboards as input devices + # that can generate at least key events 1-31; udev has the + # same heuristic. Note that the format of the bitmap + # properties depends on the word size of the process reading + # the uevent file! + for device in /sys/class/input/input*; do + if grep -qs "^KEY=.*fffffff[ef]$" "${device}/uevent"; then + sys_walk_mod_add "$(readlink -f "$device")" + fi + done + # catch old-style IDE if [ -e /sys/bus/ide/devices/ ]; then modules="$modules ide-gd_mod ide-cd"
Attachment:
signature.asc
Description: Digital signature