On Wed, 01 Jun 2011, 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 a HP ProLiant MicroServer that lacks a PS2 port
> completely.
> ---
>  scripts/functions |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/scripts/functions b/scripts/functions
> index 0a02f04..653581d 100644
> --- a/scripts/functions
> +++ b/scripts/functions
> @@ -46,6 +46,12 @@ panic()
>       fi
>       modprobe -v i8042
>       modprobe -v atkbd
> +     if ! grep "KBD port" /sys/class/input/input*/device/description 
> >/dev/null 2>&1; then
sorry for beeing an annoying "bastard",
but grep assumes busybox on board
for file in /sys/class/input/input*/device/description;  do
        if [ ! -f $file ]; then 
                modprobe
        fi
done


but looking around I had a real trouble to find a box beside
my laptop with a PS/2 keyboard attached and it showed the following

 cat /sys/class/input/input*/device/description
 i8042 KBD port

 cat /sys/class/input/input*/device/driver/description 
 AT and PS/2 keyboard driver

as I didn't want to continue my 1 hour search for an eventual PS/2 mouse,
and eventual combinations of the two.
I just applied your patch without the check to the branch timo/panic


> +             modprobe -v ehci-hcd
> +             modprobe -v uhci-hcd
> +             modprobe -v ohci-hcd
> +             modprobe -v usbhid
> +     fi
>       REASON="$@" PS1='(initramfs) ' /bin/sh -i </dev/console >/dev/console 
> 2>&1
>  }

thank you.

-- 
maks



-- 
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