[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#393688: initramfs-tools: Needs to create /lib/modules/${version} in initramfs in case no modules are required



Package: initramfs-tools
Version: 0.82
Severity: minor
Tags: patch

If your kernel configuration is such that no modules are required in
the initramfs then /lib/modules/${version}/ 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)

This can happen if you are using initramfs only to get early udev etc.

I've pasted a simple patch below, with the following changelog entry:

  * mkinitramfs: Ensure that /lib/modules/${version} exists. Otherwise
    if no modules are required a warning is issued at boot.

Thanks,
Ian.

--- initramfs-tools-0.83/mkinitramfs	2006-09-27 14:31:49.000000000 +0100
+++ initramfs-tools-0.84/mkinitramfs	2006-10-17 12:45:45.000000000 +0100
@@ -166,7 +166,7 @@
 # Private, used by 'catenate_cpiogz'.
 export __TMPCPIOGZ
 
-for d in bin conf/conf.d etc lib modules sbin scripts; do
+for d in bin conf/conf.d etc lib modules sbin scripts ${MODULESDIR}; do
 	mkdir -p "${DESTDIR}/${d}"
 done
 

-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/Vol00-root ro console=tty0 

-- /proc/filesystems
	cramfs
	ext3
	ext2
	msdos
	vfat

-- lsmod
Module                  Size  Used by
nls_iso8859_1           9856  0 
vfat                   18048  0 
nls_cp437              11520  0 
msdos                  14336  0 
fat                    56496  2 vfat,msdos
ext2                   70288  0 
loop                   20112  0 
binfmt_misc            17292  1 
nfs                   236216  6 
nfsd                  256200  17 
exportfs               10368  1 nfsd
lockd                  67600  3 nfs,nfsd
nfs_acl                 8320  2 nfs,nfsd
sunrpc                166984  13 nfs,nfsd,lockd,nfs_acl
autofs4                27912  4 
ipv6                  285664  30 
ide_disk               20608  0 
tsdev                  13056  0 
snd_ens1371            32192  3 
gameport               21264  1 snd_ens1371
snd_ac97_codec        106456  1 snd_ens1371
snd_ac97_bus            7296  1 snd_ac97_codec
snd_pcm_oss            48672  0 
snd_mixer_oss          21888  1 snd_pcm_oss
snd_pcm                89096  4 snd_ens1371,snd_ac97_codec,snd_pcm_oss
snd_seq_dummy           8580  0 
snd_seq_oss            37248  0 
snd_seq_midi           13632  0 
snd_rawmidi            31392  2 snd_ens1371,snd_seq_midi
snd_seq_midi_event     12544  2 snd_seq_oss,snd_seq_midi
snd_seq                59520  6
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              29192  3 snd_pcm,snd_seq
snd_seq_device         13204  5
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd                    65256  14
snd_ens1371,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
parport_pc             41640  0 
soundcore              15392  1 snd
psmouse                44432  0 
i2c_i801               13076  0 
parport                44684  1 parport_pc
serio_raw              12036  0 
sky2                   45700  0 
intel_agp              29248  1 
snd_page_alloc         14864  1 snd_pcm
i2c_core               27776  1 i2c_i801
evdev                  15360  1 
pcspkr                  7808  0 
floppy                 67112  0 
ext3                  138384  9 
jbd                    65008  1 ext3
mbcache                14216  2 ext2,ext3
dm_mirror              25216  0 
dm_snapshot            20536  0 
dm_mod                 62800  19 dm_mirror,dm_snapshot
ide_generic             5760  0 [permanent]
sd_mod                 25856  4 
ide_cd                 45088  0 
cdrom                  40488  1 ide_cd
ata_piix               19976  3 
ehci_hcd               36104  0 
libata                106784  1 ata_piix
scsi_mod              152880  2 sd_mod,libata
uhci_hcd               28432  0 
piix                   15492  0 [permanent]
generic                10756  0 [permanent]
ide_core              147584  5 ide_disk,ide_generic,ide_cd,piix,generic
thermal                20240  0 
processor              38248  1 thermal
fan                     9864  0 

-- kernel-img.conf
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = yes
postinst_hook = /sbin/update-grub
postrm_hook   = /sbin/update-grub


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.1.3-3  Tiny utilities for small
and embed
ii  cpio                          2.6-17     GNU cpio -- a program to
manage ar
ii  klibc-utils                   1.4.27-1   small statically-linked
utilities 
ii  module-init-tools             3.2.2-3    tools for managing Linux
kernel mo
ii  udev                          0.100-2    /dev/ and hotplug
management daemo

initramfs-tools recommends no packages.

-- no debconf information

-- 
Ian Campbell
Current Noise: Atheist - Green

A wise man can see more from a mountain top than a fool can from the bottom
of a well.




Reply to: