Skip to content

Commit

Permalink
ash_functions: move sleep 2 after all usb modules being loaded
Browse files Browse the repository at this point in the history
Otherwise we get ehci-pci and xhci_hcd kernel messages in dmesg debug AFTER "Verifying presence of GPG card" which explains why dongle might not be found in time and fails in oem-factory-reset

Fixes Nitrokey#48

Signed-off-by: Thierry Laurion <[email protected]>
  • Loading branch information
tlaurion authored and macpijan committed Jun 20, 2024
1 parent ccf4970 commit 4e34cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initrd/etc/ash_functions
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ enable_usb()
if ! lsmod | grep -q xhci_pci; then
insmod /lib/modules/xhci-pci.ko \
|| die "xhci_pci: module load failed"
sleep 2
fi
sleep 2

if [ "$CONFIG_USB_KEYBOARD" = y ]; then
if ! lsmod | grep -q usbhid; then
Expand Down

0 comments on commit 4e34cc0

Please sign in to comment.