Package: initramfs-tools
Version: 0.32
Severity: important
Tags: patch

In /usr/share/initramfs-tools/hooks/kernelextras man can see :

for x in ${MODULESDIR}/initrd/*; do
        x=${x##*/}
        x=${x%.*}
        case ${x} in
        *fb)
                fbcon=y
                ;;
        esac

        force_load ${x}
done

if ${MODULESDIR}/initrd/ doesn't exist x=${x##*/} and x=${x%.*} are '*'. 
You sure don't want to force_load your current directory.

Here's a quick and dirty patch :

--- /usr/share/initramfs-tools/hooks/kernelextras       2005-10-24 
11:49:21.000000000 +0200
+++ kernelextras        2005-10-24 12:34:41.000000000 +0200
@@ -23,17 +23,20 @@
 
 set -x
 
-for x in ${MODULESDIR}/initrd/*; do
-       x=${x##*/}
-       x=${x%.*}
-       case ${x} in
-       *fb)
-               fbcon=y
-               ;;
-       esac
+if [ -d ${MODULESDIR}/initrd ]; then
+       for x in ${MODULESDIR}/initrd/*; do
+               x=${x##*/}
+               x=${x%.*}
+               case ${x} in
+               *fb)
+                       fbcon=y
+                       ;;
+               esac
+       
+               force_load ${x}
+       done
+fi
 
-       force_load ${x}
-done
 
 if [ ${fbcon} = "y" ]; then
        force_load fbcon

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (900, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.01-3   Tiny utilities for small and embed
ii  cpio                          2.6-7      GNU cpio -- a program to manage ar
ii  klibc-utils                   1.1.1-2    small statically-linked utilities 
ii  lvm2                          2.01.14-3  The Linux Logical Volume Manager
ii  mdadm                         1.12.0-1   tool to administer Linux md device
ii  mklibs-copy                   0.1.18     Shared library reduction script
ii  udev                          0.071-1    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information
--- /usr/share/initramfs-tools/hooks/kernelextras       2005-10-24 
11:49:21.000000000 +0200
+++ kernelextras        2005-10-24 12:34:41.000000000 +0200
@@ -23,17 +23,20 @@
 
 set -x
 
-for x in ${MODULESDIR}/initrd/*; do
-       x=${x##*/}
-       x=${x%.*}
-       case ${x} in
-       *fb)
-               fbcon=y
-               ;;
-       esac
+if [ -d ${MODULESDIR}/initrd ]; then
+       for x in ${MODULESDIR}/initrd/*; do
+               x=${x##*/}
+               x=${x%.*}
+               case ${x} in
+               *fb)
+                       fbcon=y
+                       ;;
+               esac
+       
+               force_load ${x}
+       done
+fi
 
-       force_load ${x}
-done
 
 if [ ${fbcon} = "y" ]; then
        force_load fbcon

Reply via email to