Package: initramfs-tools
Version: 0.91d
Severity: minor
Tags: patch

this bug is un update to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=393688

If your kernel configuration is such that no modules are required in
the initramfs then /lib/modules/${version}/modules.dep is never
created and on boot
you get some noisy message:
  FATAL: Could not load /lib/modules/${version}/modules.dep: No such
file or directory
(several times)

the dirty fix is below

--- mkinitramfs 2008-02-14 10:56:55.000000000 -0500
+++ /usr/sbin/mkinitramfs       2008-02-14 11:18:49.000000000 -0500
@@ -183,6 +183,7 @@
 for d in bin conf/conf.d etc lib/modules sbin scripts ${MODULESDIR}; do
        mkdir -p "${DESTDIR}/${d}"
 done
+touch "${DESTDIR}/${MODULESDIR}/modules.dep"

 # MODULES=list case.  Always honour.
 for x in "${CONFDIR}/modules" /usr/share/initramfs-tools/modules.d/*; do

Reply via email to