sopko
August 1st, 2012, 05:16 PM
I understand initramfs is supposed to replace initrd files. By default our 12.04 systems only have /boot/initrd.img files. I have one 12.04 system that has both /boot/initrd.img and initramfs files. When removing old kernels the initrd.img files get removed but not the initramfs files.
What controls if the system generates initramfs or initrd files?
For example the odd system has both:
/boot/initramfs-3.2.0-27-generic.img
/boot/initrd.img-3.2.0-27-generic
When I removed the following old kernel packages with "apt-get -y purge"
linux-headers-3.2.0-24
linux-headers-3.2.0-24-generic
linux-image-3.2.0-24-generic
It removed
/boot/initrd.img-3.2.0-24-generic
but did not remove:
/boot/initramfs-3.2.0-24-generic.img
I needed to remove them because /boot was filling up with old kernels. Thanks for any insight.
What controls if the system generates initramfs or initrd files?
For example the odd system has both:
/boot/initramfs-3.2.0-27-generic.img
/boot/initrd.img-3.2.0-27-generic
When I removed the following old kernel packages with "apt-get -y purge"
linux-headers-3.2.0-24
linux-headers-3.2.0-24-generic
linux-image-3.2.0-24-generic
It removed
/boot/initrd.img-3.2.0-24-generic
but did not remove:
/boot/initramfs-3.2.0-24-generic.img
I needed to remove them because /boot was filling up with old kernels. Thanks for any insight.