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

Bug#420245: /usr/sbin/update-initramfs: uninstalled kernels are not removed from /var/lib/initramfs-tools



Package: initramfs-tools
Version: 0.87b
Severity: minor
File: /usr/sbin/update-initramfs

update-initramfs -u -k all tries to update the initial ramdisk for
kernels, which aren't installed on my system anymore.
The problems seems to be, that I have files in
/var/lib/initramfs-tools# ls
2.6.20-1-686  2.6.20.7  2.6.21-rc6  2.6.21-rc7

for which no kernel exists anymore (because it was uninstalled).

If update-initramfs cannot find the corresponding kernel image to a file
in /var/lib/initramfs-tools, it should simply remove the file from
there.

Cheers,
Michael


-- Package-specific info:
-- /proc/cmdline
root=LABEL=Debian ro quiet 

-- /proc/filesystems
	ext3
	fuseblk
	reiserfs
	vfat
	udf

-- lsmod
Module                  Size  Used by
usb_storage            33668  0 
udf                    78020  0 
michael_mic             2240  6 
arc4                    1664  6 
ecb                     2496  6 
blkcipher               4548  1 ecb
ieee80211_crypt_tkip    10112  3 
ipv6                  223200  10 
radeon                120672  2 
drm                    69780  3 radeon
af_packet              15304  4 
binfmt_misc             8200  1 
rfcomm                 31004  0 
l2cap                  17732  5 rfcomm
button                  5712  0 
ac                      3524  0 
battery                 7940  0 
nls_iso8859_1           3776  1 
nls_cp437               5376  1 
vfat                    9856  1 
fat                    43868  1 vfat
reiserfs              222912  2 
fuse                   37140  3 
dm_snapshot            13664  0 
dm_mod                 45580  1 dm_snapshot
cpufreq_powersave       1344  0 
cpufreq_performance     1536  0 
cpufreq_ondemand        5884  1 
cpufreq_conservative     5344  0 
acpi_cpufreq            5580  1 
pcmcia                 23840  0 
snd_intel8x0           27868  1 
snd_ac97_codec         93408  1 snd_intel8x0
ac97_bus                1792  1 snd_ac97_codec
snd_pcm_oss            36192  0 
snd_mixer_oss          13824  1 snd_pcm_oss
snd_pcm                58504  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              17476  1 snd_pcm
usblp                  11072  0 
ipw2100                65520  0 
rtc                     9048  0 
irtty_sir               4800  0 
sir_dev                10180  1 irtty_sir
smsc_ircc2             13916  0 
irda                  103928  2 sir_dev,smsc_ircc2
parport_pc             24676  0 
parport                19008  1 parport_pc
ieee80211              29512  1 ipw2100
ieee80211_crypt         4096  2 ieee80211_crypt_tkip,ieee80211
yenta_socket           22988  1 
rsrc_nonstatic         10688  1 yenta_socket
hci_usb                13596  2 
wbsd                   13896  0 
mmc_core               21332  1 wbsd
snd                    41956  8 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore               5408  1 snd
snd_page_alloc          7304  2 snd_intel8x0,snd_pcm
crc_ccitt               1728  1 irda
bluetooth              42788  7 rfcomm,l2cap,hci_usb
pcmcia_core            31376  3 pcmcia,yenta_socket,rsrc_nonstatic
firmware_class          6912  2 pcmcia,ipw2100
intel_agp              20892  1 
agpgart                26800  2 drm,intel_agp
joydev                  7872  0 
tsdev                   5888  0 
evdev                   7616  7 
usbhid                 20512  0 
sg                     25628  0 
8139cp                 17280  0 
mii                     4416  1 8139cp
ehci_hcd               27084  0 
uhci_hcd               20812  0 
usbcore               112216  7 usb_storage,usblp,hci_usb,usbhid,ehci_hcd,uhci_hcd
sr_mod                 12324  0 
cdrom                  33632  1 sr_mod
sd_mod                 14736  7 
thermal                10952  0 
processor              18476  2 acpi_cpufreq,thermal
fan                     3332  0 
ata_piix               11140  6 
libata                100116  1 ata_piix

-- /etc/kernel-img.conf
# Do not create symbolic links in /
do_symlinks = no
relative_links = no
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = /usr/sbin/update-grub
postrm_hook   = /usr/sbin/update-grub

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


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-rc7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.1.3-4  Tiny utilities for small and embed
ii  cpio                          2.7-2      GNU cpio -- a program to manage ar
ii  klibc-utils                   1.5-2      small statically-linked utilities 
ii  module-init-tools             3.3-pre4-2 tools for managing Linux kernel mo
ii  udev                          0.105-4    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information



Reply to: