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

Bug#532745: initramfs-tools: /etc/initramfs-tools/modules - Last module without extra newline not added to image



Package: initramfs-tools
Version: 0.92o
Severity: normal
Tags: patch

In /etc/initramfs-tools/modules
if after the last module has no extra line, then the module is not included in the initramfs's image.

Suggestions:
#1 Simply add reminder to /etc/initramfs-tools/modules.
or
#2 Add newline at the end of file and stripe any empty lines:

--- cut --------------------------------------------------
--- hook-functions      2008-12-18 22:41:11.000000000 +0600
+++ hook-functions.new  2009-06-11 16:06:08.951439683 +0700
@@ -33,7 +33,8 @@
                return
        fi

-       sed -e '/^#/d' ${1} | while read module rest; do
+       sed -e '/^#/d' -e '${/^$/!s/$/\
+           /;}' ${1} | sed -e '/^$/d'| while read module rest; do
                force_load "${module}" "${rest}"
        done
 }
--- cut --------------------------------------------------

-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/root rw

-- /proc/filesystems
        xfs

-- lsmod
Module                  Size  Used by
sch_tbf                 4416  4 
ppp_deflate             4224  0 
zlib_deflate           17656  1 ppp_deflate
zlib_inflate           14144  1 ppp_deflate
ppp_async               7488  5 
crc_ccitt               2080  1 ppp_async
ppp_generic            20028  22 ppp_deflate,ppp_async
slhc                    5376  1 ppp_generic
sch_htb                13248  3 
xt_MARK                 2304  4 
xt_length               1760  4 
xt_CLASSIFY             1696  43 
xt_DSCP                 2944  3 
xt_hashlimit            9360  2 
xt_CONNMARK             2944  2 
xt_owner                2560  2 
ipt_LOG                 5028  8 
xt_connmark             2368  2 
xt_helper               2112  6 
ipt_REDIRECT            1760  2 
xt_limit                2180  39 
ipt_REJECT              2784  1 
xt_state                2016  128 
xt_tcpudp               2816  172 
iptable_mangle          2688  1 
iptable_nat             4680  1 
nf_nat                 15544  2 ipt_REDIRECT,iptable_nat
nf_conntrack_ipv4      12268  141 iptable_nat,nf_nat
nf_conntrack           55540  7 xt_CONNMARK,xt_connmark,xt_helper,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
iptable_raw             2176  1 
iptable_filter          2624  1 
nls_cp1251              4736  0 
ip_tables              10160  4 iptable_mangle,iptable_nat,iptable_raw,iptable_filter
cifs                  208692  0 
nls_base                6820  2 nls_cp1251,cifs
x_tables               13284  17 xt_MARK,xt_length,xt_CLASSIFY,xt_DSCP,xt_hashlimit,xt_CONNMARK,xt_owner,ipt_LOG,xt_connmark,xt_helper,ipt_REDIRECT,xt_limit,ipt_REJECT,xt_state,xt_tcpudp,iptable_nat,ip_tables
ipv6                  235364  36 
ide_generic             2464  0 [permanent]
ide_disk               10496  0 
psmouse                32336  0 
snd_intel8x0           26268  0 
serio_raw               4740  0 
parport_pc             22500  0 
parport                30988  1 parport_pc
i2c_i801                7920  0 
intel_rng               4576  0 
rng_core                3940  2 intel_rng
snd_ac97_codec         88484  1 snd_intel8x0
ac97_bus                1728  1 snd_ac97_codec
i2c_core               19828  1 i2c_i801
snd_pcm                62596  2 snd_intel8x0,snd_ac97_codec
snd_timer              17800  1 snd_pcm
snd                    45604  4 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               6368  1 snd
snd_page_alloc          7816  2 snd_intel8x0,snd_pcm
iTCO_wdt                9508  0 
pcspkr                  2432  0 
shpchp                 25528  0 
pci_hotplug            23460  1 shpchp
intel_agp              22556  1 
button                  6096  0 
agpgart                28776  1 intel_agp
evdev                   8000  0 
xfs                   457976  17 
aes_i586                7744  22 
aes_generic            29256  1 aes_i586
cbc                     3264  11 
dm_crypt               11172  1 
crypto_blkcipher       15236  13 cbc,dm_crypt
dm_mirror              15104  0 
dm_log                  8484  1 dm_mirror
dm_snapshot            14340  0 
dm_mod                 46184  39 dm_crypt,dm_mirror,dm_log,dm_snapshot
sd_mod                 22200  13 
ide_cd_mod             27652  0 
cdrom                  30176  1 ide_cd_mod
ata_piix               14180  12 
usbhid                 35904  1 
hid                    33184  1 usbhid
ff_memless              4392  1 usbhid
ata_generic             4676  0 
libata                140416  2 ata_piix,ata_generic
scsi_mod              129324  2 sd_mod,libata
dock                    8304  1 libata
piix                    6568  0 [permanent]
floppy                 47748  0 
e100                   28908  0 
mii                     4896  1 e100
ide_pci_generic         3908  0 [permanent]
ide_core               96136  5 ide_generic,ide_disk,ide_cd_mod,piix,ide_pci_generic
ehci_hcd               28396  0 
uhci_hcd               18672  0 
usbcore               118224  5 usbhid,ehci_hcd,uhci_hcd
thermal                15228  0 
processor              32544  1 thermal
fan                     4164  0 
thermal_sys            10856  3 thermal,processor,fan
wp512                  25824  0 

-- /etc/kernel-img.conf
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii  cpio                      2.9-13         GNU cpio -- a program to manage ar
ii  findutils                 4.4.0-2        utilities for finding files--find,
ii  klibc-utils               1.5.12-2       small utilities built with klibc f
ii  module-init-tools         3.4-1          tools for managing Linux kernel mo
ii  udev                      0.125-7+lenny1 /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii  busybox                       1:1.10.2-2 Tiny utilities for small and embed

initramfs-tools suggests no packages.

-- no debconf information 




Reply to: