Package: initramfs-tools Version: 0.93.4 Severity: wishlist Tags: patch
I think, at least once You saw the message in subject. It is common problem: the /boot directory placed on separate partition that should be small. If there are more then one kernel, the disk space will be necessarily exhausted, because new kernel version require more disk space then old as usual. Turning off backup don't help because the old initrd removed after the new one created. To solve this problem the backups should be moved to separated directory and may be rotated. The old initrd should be moved there or removed before the new one will be created. All this work is done by script I have attached there. It is intended to be run before update-initramfs, but there are no triggers to do this. Using /etc/initramfs-tools/hooks don't help. Please, add this functionality as options in config file. -- Package-specific info: -- /proc/cmdline BOOT_IMAGE=//vmlinuz-2.6.32-trunk-amd64 root=UUID=06779e83-c998-4a4b-bb52-f4bac1ee226a ro vga=795 -- /proc/filesystems ext3 fuseblk -- lsmod Module Size Used by vboxnetflt 9898 0 vboxnetadp 4177 0 vboxdrv 1709830 2 vboxnetflt,vboxnetadp i915 246815 1 drm_kms_helper 18771 1 i915 drm 136351 3 i915,drm_kms_helper i2c_algo_bit 4225 1 i915 video 17333 1 i915 output 1692 1 video ppdev 5030 0 lp 7462 0 kvm_intel 37600 0 kvm 210696 1 kvm_intel autofs4 20533 2 fuse 49662 1 tun 10732 3 bridge 39310 0 stp 1440 1 bridge coretemp 4165 0 snd_hda_codec_idt 42257 1 snd_hda_intel 17851 0 snd_hda_codec 52580 2 snd_hda_codec_idt,snd_hda_intel snd_hwdep 5220 1 snd_hda_codec snd_pcm_oss 32223 0 snd_mixer_oss 12478 1 snd_pcm_oss snd_pcm 60263 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss snd_timer 15406 1 snd_pcm i2c_i801 7510 0 evdev 7336 14 pcspkr 1699 0 processor 29351 0 i2c_core 15184 4 i915,drm,i2c_algo_bit,i2c_i801 snd 44158 8 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer iTCO_wdt 7525 0 parport_pc 18839 1 parport 27666 3 ppdev,lp,parport_pc soundcore 4582 1 snd snd_page_alloc 6105 2 snd_hda_intel,snd_pcm ext3 105843 7 jbd 36621 1 ext3 mbcache 4970 1 ext3 sg 18600 3 usbhid 31068 0 sr_mod 12250 0 hid 62649 1 usbhid cdrom 28615 1 sr_mod sd_mod 29401 9 crc_t10dif 1276 1 sd_mod ata_generic 2983 0 ahci 31430 10 pata_marvell 2597 0 firewire_ohci 19324 0 firewire_core 36288 1 firewire_ohci crc_itu_t 1307 1 firewire_core ide_pci_generic 2788 0 ide_core 76242 1 ide_pci_generic libata 130935 3 ata_generic,ahci,pata_marvell e1000e 109583 0 uhci_hcd 18377 0 ehci_hcd 30322 0 intel_agp 25441 1 agpgart 24733 3 drm,intel_agp scsi_mod 121285 4 sg,sr_mod,sd_mod,libata usbcore 121015 4 usbhid,uhci_hcd,ehci_hcd nls_base 6377 1 usbcore button 4618 1 i915 thermal 11610 0 fan 3346 0 thermal_sys 11878 4 video,processor,thermal,fan -- /etc/kernel-img.conf # Kernel Image management overrides # See kernel-img.conf(5) for details do_symlinks = no #relative_links = yes 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: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (x86_64) Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R) 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.11-1 tools for managing Linux kernel mo ii udev 149-1 /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
#!/bin/sh STORAGE=/var/backups IMAGE=initrd.img-$version STATEDIR="/var/lib/initramfs-tools" BOOTDIR=/boot # Shamelessly ripped from /etc/cron.daily/standard if cd $STORAGE && [ -s ${BOOTDIR}/$IMAGE ]; then if ! cmp -s $IMAGE.0 ${BOOTDIR}/$IMAGE ; then mv ${BOOTDIR}/$IMAGE $IMAGE savelog -l $IMAGE > /dev/null else rm ${BOOTDIR}/$IMAGE fi touch ${BOOTDIR}/$IMAGE sha1sum ${BOOTDIR}/$IMAGE > ${STATEDIR}/${version} fi