On Mon, Feb 28, 2011 at 01:18:04PM +0200, Timo Juhani Lindfors wrote:
> USB modules are not normally loaded at break=top time but since USB
> keyboards are very common we should take the effort to try to load
> extra kernel modules at break (=panic) time. This patch closes #615831
> and has been adapted from comments mentioned in
> 
> https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/229732
> 
> and tested on on HP ProLiant MicroServer that lacks a PS2 port
> completely.
> ---
>  scripts/functions |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/scripts/functions b/scripts/functions
> index 579696a..778196f 100644
> --- a/scripts/functions
> +++ b/scripts/functions
> @@ -46,6 +46,13 @@ panic()
>       fi
>       modprobe i8042
>       modprobe atkbd
> +     if ! grep -q '^H:.*kbd' /proc/bus/input/devices ; then

with BUSYBOX=no not available, also we'd better check in /sys/

> +             # no keyboard? Try USB.
> +             modprobe ehci-hcd
> +             modprobe uhci-hcd
> +             modprobe ohci-hcd
> +             modprobe usbhid
HMM modrpobing is a hack,
but well at this stage it might be valuable,
consdering one would want to debug udev?


> +     fi
>       REASON="$@" PS1='(initramfs) ' /bin/sh -i </dev/console >/dev/console 
> 2>&1
>  }

Md any feedback from your side?



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to