--- Begin Message ---
Package: initramfs-tools
Version: 0.93.4
Severity: important
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Mart van de Wege <mvdw...@mail.com>
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Subject: initramfs-tools: Purging a kernel-image does not clean up
/var/lib/initramfs-tools
Message-ID: <20090903081412.4143.23377.report...@gareth.avalon.lan>
X-Mailer: reportbug 4.6
Date: Thu, 03 Sep 2009 10:14:12 +0200
Package: initramfs-tools
Version: 0.93.4
Severity: important
When purging a kernel image, the corresponding file in /var/lib/initramfs-tools
is not
deleted. On the next run of apt-get/dpkg, this will make update-initramfs fail
because
the modules for a listed kernel do of course not exist anymore.
It might be a good idea to at least also mention the state dir in the manpage.
I had to
resort to actually looking at the shell script to find out why update-initramfs
kept
trying to create an initrd for a non-existent kernel, after finding no
documentation in
the manpage.
Marking important because although there is a workaround, it is non-documented.
Mart van de Wege
-- Package-specific info:
-- /proc/cmdline
root=UUID=ad3e8512-109e-4cb2-b261-c3cb7784117b ro quiet
-- /proc/filesystems
ext3
fuseblk
vfat
-- lsmod
Module Size Used by
ppp_async 7428 0
crc_ccitt 1800 1 ppp_async
ppp_generic 19772 1 ppp_async
slhc 4948 1 ppp_generic
nls_utf8 1472 0
nls_cp437 5304 0
vfat 8672 0
fat 41688 1 vfat
nls_base 6508 4 nls_utf8,nls_cp437,vfat,fat
usb_storage 83552 0
ipt_REJECT 2480 2
nf_conntrack_ipv4 11568 2
nf_defrag_ipv4 1648 1 nf_conntrack_ipv4
xt_conntrack 3168 2
nf_conntrack 58228 2 nf_conntrack_ipv4,xt_conntrack
iptable_filter 2944 1
ip_tables 9908 1 iptable_filter
binfmt_misc 7168 1
i915 130336 1
drm 133296 2 i915
i2c_algo_bit 4888 1 i915
ppdev 6224 0
lp 7872 0
parport 30868 2 ppdev,lp
sco 8676 2
bridge 39864 0
stp 2092 1 bridge
bnep 10848 2
rfcomm 29636 8
l2cap 17072 16 bnep,rfcomm
ipt_ULOG 6676 2
x_tables 13672 4 ipt_REJECT,xt_conntrack,ip_tables,ipt_ULOG
kvm_intel 38792 0
kvm 131344 1 kvm_intel
tun 9684 1
autofs4 21220 2
acpi_cpufreq 7044 0
cpufreq_powersave 1276 0
cpufreq_conservative 5456 0
cpufreq_stats 3588 0
cpufreq_userspace 2748 0
ipv6 232468 50
deflate 2332 0
zlib_deflate 17572 1 deflate
zlib_inflate 13468 1 deflate
ctr 3672 0
twofish 6244 0
twofish_common 13300 1 twofish
camellia 17504 0
serpent 16804 0
blowfish 7864 0
des_generic 16128 0
cbc 2996 0
aes_i586 7456 0
aes_generic 27412 1 aes_i586
xcbc 4064 0
rmd160 10032 0
sha256_generic 11200 0
sha1_generic 1968 0
hmac 3500 0
crypto_null 2804 0
af_key 25368 0
fuse 48352 1
dm_crypt 11156 0
firewire_sbp2 12500 0
loop 12988 0
snd_hda_codec_idt 48764 1
snd_hda_intel 22092 4
snd_hda_codec 58808 2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep 6000 1 snd_hda_codec
snd_pcm_oss 31708 0
snd_mixer_oss 12000 1 snd_pcm_oss
snd_pcm 62708 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
pcmcia 23312 0
hid_gaff 2900 0
hid_pl 2996 0
hid_cypress 2340 0
hid_zpff 2652 0
hid_gyration 2196 0
hid_sony 2568 0
hid_ntrig 1744 0
hid_samsung 2112 0
hid_microsoft 3200 0
hid_tmff 3460 0
snd_seq_dummy 2368 0
hid_monterey 2132 0
snd_seq_oss 24756 0
hid_ezkey 1832 0
hid_apple 5704 0
hid_a4tech 2500 0
snd_seq_midi 5448 0
hid_logitech 6656 0
ff_memless 4264 5 hid_gaff,hid_pl,hid_zpff,hid_tmff,hid_logitech
hid_cherry 2100 0
snd_rawmidi 18544 1 snd_seq_midi
snd_seq_midi_event 6072 2 snd_seq_oss,snd_seq_midi
arc4 1544 2
hid_sunplus 1972 0
hid_petalynx 2468 0
snd_seq 42120 6
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
ecb 2352 2
snd_timer 17808 3 snd_pcm,snd_seq
snd_seq_device 6108 5
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
yenta_socket 21276 1
hid_belkin 2284 0
hid_chicony 2004 0
joydev 8560 0
dell_laptop 3148 0
rsrc_nonstatic 9424 1 yenta_socket
snd 48420 18
snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
iwl3945 71640 0
btusb 10156 2
mac80211 135624 1 iwl3945
led_class 3668 1 iwl3945
usbhid 29132 5 hid_gaff,hid_pl,hid_zpff,hid_tmff,hid_logitech
rfkill 9576 5 dell_laptop,iwl3945
hid 34260 21
hid_gaff,hid_pl,hid_cypress,hid_zpff,hid_gyration,hid_sony,hid_ntrig,hid_samsung,hid_microsoft,hid_tmff,hid_monterey,hid_ezkey,hid_apple,hid_a4tech,hid_logitech,hid_cherry,hid_sunplus,hid_petalynx,hid_belkin,hid_chicony,usbhid
pcmcia_core 30784 3 pcmcia,yenta_socket,rsrc_nonstatic
i2c_i801 8104 0
soundcore 6204 1 snd
rng_core 3644 0
dcdbas 6728 1 dell_laptop
serio_raw 4544 0
i2c_core 20828 4 i915,drm,i2c_algo_bit,i2c_i801
lib80211 6076 1 iwl3945
video 16348 0
psmouse 36628 0
bluetooth 46052 9 sco,bnep,rfcomm,l2cap,btusb
wmi 6332 0
evdev 8160 19
battery 5832 0
output 2504 1 video
snd_page_alloc 8036 2 snd_hda_intel,snd_pcm
button 5672 0
cfg80211 32996 2 iwl3945,mac80211
ac 2872 0
ext3 107180 4
jbd 42500 1 ext3
mbcache 7180 1 ext3
dm_mod 48856 14 dm_crypt
raid10 18684 0
raid456 118032 0
async_xor 3080 1 raid456
async_memcpy 1756 1 raid456
async_tx 3156 3 raid456,async_xor,async_memcpy
xor 13464 2 raid456,async_xor
raid1 18260 0
raid0 6176 0
multipath 5972 0
linear 4336 0
md_mod 74108 6 raid10,raid456,raid1,raid0,multipath,linear
sg 19940 0
sr_mod 12840 0
cdrom 29804 1 sr_mod
sd_mod 28252 3
crc_t10dif 1616 1 sd_mod
ata_generic 4316 0
ide_pci_generic 3408 0
ide_core 91812 1 ide_pci_generic
ata_piix 20092 2
libata 148892 2 ata_generic,ata_piix
uhci_hcd 19392 0
scsi_mod 132076 6
usb_storage,firewire_sbp2,sg,sr_mod,sd_mod,libata
firewire_ohci 18620 0
firewire_core 33504 2 firewire_sbp2,firewire_ohci
crc_itu_t 1796 1 firewire_core
ehci_hcd 29936 0
usbcore 124912 7
usb_storage,hid_sony,btusb,usbhid,uhci_hcd,ehci_hcd
tg3 91040 0
libphy 19424 1 tg3
intel_agp 22548 1
agpgart 30624 3 drm,intel_agp
thermal 15092 0
processor 39540 4 acpi_cpufreq,thermal
fan 4104 0
thermal_sys 10272 4 video,thermal,processor,fan
-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto
-- /etc/crypttab
# <target name> <source device> <key file> <options>
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii cpio 2.10-1 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.15-1 small utilities built with klibc f
ii module-init-tools 3.10-3 tools for managing Linux kernel mo
ii udev 0.141-2 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.14.2-2 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
-- Package-specific info:
-- /proc/cmdline
root=UUID=ad3e8512-109e-4cb2-b261-c3cb7784117b ro quiet
-- /proc/filesystems
ext3
fuseblk
vfat
-- lsmod
Module Size Used by
ppp_async 7428 0
crc_ccitt 1800 1 ppp_async
ppp_generic 19772 1 ppp_async
slhc 4948 1 ppp_generic
nls_utf8 1472 0
nls_cp437 5304 0
vfat 8672 0
fat 41688 1 vfat
nls_base 6508 4 nls_utf8,nls_cp437,vfat,fat
usb_storage 83552 0
ipt_REJECT 2480 2
nf_conntrack_ipv4 11568 2
nf_defrag_ipv4 1648 1 nf_conntrack_ipv4
xt_conntrack 3168 2
nf_conntrack 58228 2 nf_conntrack_ipv4,xt_conntrack
iptable_filter 2944 1
ip_tables 9908 1 iptable_filter
binfmt_misc 7168 1
i915 130336 1
drm 133296 2 i915
i2c_algo_bit 4888 1 i915
ppdev 6224 0
lp 7872 0
parport 30868 2 ppdev,lp
sco 8676 2
bridge 39864 0
stp 2092 1 bridge
bnep 10848 2
rfcomm 29636 8
l2cap 17072 16 bnep,rfcomm
ipt_ULOG 6676 2
x_tables 13672 4 ipt_REJECT,xt_conntrack,ip_tables,ipt_ULOG
kvm_intel 38792 0
kvm 131344 1 kvm_intel
tun 9684 1
autofs4 21220 2
acpi_cpufreq 7044 0
cpufreq_powersave 1276 0
cpufreq_conservative 5456 0
cpufreq_stats 3588 0
cpufreq_userspace 2748 0
ipv6 232468 50
deflate 2332 0
zlib_deflate 17572 1 deflate
zlib_inflate 13468 1 deflate
ctr 3672 0
twofish 6244 0
twofish_common 13300 1 twofish
camellia 17504 0
serpent 16804 0
blowfish 7864 0
des_generic 16128 0
cbc 2996 0
aes_i586 7456 0
aes_generic 27412 1 aes_i586
xcbc 4064 0
rmd160 10032 0
sha256_generic 11200 0
sha1_generic 1968 0
hmac 3500 0
crypto_null 2804 0
af_key 25368 0
fuse 48352 1
dm_crypt 11156 0
firewire_sbp2 12500 0
loop 12988 0
snd_hda_codec_idt 48764 1
snd_hda_intel 22092 4
snd_hda_codec 58808 2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep 6000 1 snd_hda_codec
snd_pcm_oss 31708 0
snd_mixer_oss 12000 1 snd_pcm_oss
snd_pcm 62708 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
pcmcia 23312 0
hid_gaff 2900 0
hid_pl 2996 0
hid_cypress 2340 0
hid_zpff 2652 0
hid_gyration 2196 0
hid_sony 2568 0
hid_ntrig 1744 0
hid_samsung 2112 0
hid_microsoft 3200 0
hid_tmff 3460 0
snd_seq_dummy 2368 0
hid_monterey 2132 0
snd_seq_oss 24756 0
hid_ezkey 1832 0
hid_apple 5704 0
hid_a4tech 2500 0
snd_seq_midi 5448 0
hid_logitech 6656 0
ff_memless 4264 5 hid_gaff,hid_pl,hid_zpff,hid_tmff,hid_logitech
hid_cherry 2100 0
snd_rawmidi 18544 1 snd_seq_midi
snd_seq_midi_event 6072 2 snd_seq_oss,snd_seq_midi
arc4 1544 2
hid_sunplus 1972 0
hid_petalynx 2468 0
snd_seq 42120 6
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
ecb 2352 2
snd_timer 17808 3 snd_pcm,snd_seq
snd_seq_device 6108 5
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
yenta_socket 21276 1
hid_belkin 2284 0
hid_chicony 2004 0
joydev 8560 0
dell_laptop 3148 0
rsrc_nonstatic 9424 1 yenta_socket
snd 48420 18
snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
iwl3945 71640 0
btusb 10156 2
mac80211 135624 1 iwl3945
led_class 3668 1 iwl3945
usbhid 29132 5 hid_gaff,hid_pl,hid_zpff,hid_tmff,hid_logitech
rfkill 9576 5 dell_laptop,iwl3945
hid 34260 21
hid_gaff,hid_pl,hid_cypress,hid_zpff,hid_gyration,hid_sony,hid_ntrig,hid_samsung,hid_microsoft,hid_tmff,hid_monterey,hid_ezkey,hid_apple,hid_a4tech,hid_logitech,hid_cherry,hid_sunplus,hid_petalynx,hid_belkin,hid_chicony,usbhid
pcmcia_core 30784 3 pcmcia,yenta_socket,rsrc_nonstatic
i2c_i801 8104 0
soundcore 6204 1 snd
rng_core 3644 0
dcdbas 6728 1 dell_laptop
serio_raw 4544 0
i2c_core 20828 4 i915,drm,i2c_algo_bit,i2c_i801
lib80211 6076 1 iwl3945
video 16348 0
psmouse 36628 0
bluetooth 46052 9 sco,bnep,rfcomm,l2cap,btusb
wmi 6332 0
evdev 8160 19
battery 5832 0
output 2504 1 video
snd_page_alloc 8036 2 snd_hda_intel,snd_pcm
button 5672 0
cfg80211 32996 2 iwl3945,mac80211
ac 2872 0
ext3 107180 4
jbd 42500 1 ext3
mbcache 7180 1 ext3
dm_mod 48856 14 dm_crypt
raid10 18684 0
raid456 118032 0
async_xor 3080 1 raid456
async_memcpy 1756 1 raid456
async_tx 3156 3 raid456,async_xor,async_memcpy
xor 13464 2 raid456,async_xor
raid1 18260 0
raid0 6176 0
multipath 5972 0
linear 4336 0
md_mod 74108 6 raid10,raid456,raid1,raid0,multipath,linear
sg 19940 0
sr_mod 12840 0
cdrom 29804 1 sr_mod
sd_mod 28252 3
crc_t10dif 1616 1 sd_mod
ata_generic 4316 0
ide_pci_generic 3408 0
ide_core 91812 1 ide_pci_generic
ata_piix 20092 2
libata 148892 2 ata_generic,ata_piix
uhci_hcd 19392 0
scsi_mod 132076 6
usb_storage,firewire_sbp2,sg,sr_mod,sd_mod,libata
firewire_ohci 18620 0
firewire_core 33504 2 firewire_sbp2,firewire_ohci
crc_itu_t 1796 1 firewire_core
ehci_hcd 29936 0
usbcore 124912 7
usb_storage,hid_sony,btusb,usbhid,uhci_hcd,ehci_hcd
tg3 91040 0
libphy 19424 1 tg3
intel_agp 22548 1
agpgart 30624 3 drm,intel_agp
thermal 15092 0
processor 39540 4 acpi_cpufreq,thermal
fan 4104 0
thermal_sys 10272 4 video,thermal,processor,fan
-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto
-- /etc/crypttab
# <target name> <source device> <key file> <options>
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii cpio 2.10-1 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.15-1 small utilities built with klibc f
ii module-init-tools 3.10-3 tools for managing Linux kernel mo
ii udev 0.141-2 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.14.2-2 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
--- End Message ---