kernel cleanup on remove

Michael Lednev

Renowned Member
May 26, 2013
24
0
66
Yaroslavl, Russia
This is not really a big deal but why does not old initrd files get removed on kernel removal?

Code:
# ls -l /boot/
total 71763
-rw-r--r-- 1 root root   105982 Nov  8 08:42 config-2.6.32-34-pve
drwxr-xr-x 3 root root     5120 Nov  9 09:12 grub
-rw-r--r-- 1 root root 16485840 May 27 08:11 initrd.img-2.6.32-29-pve
-rw-r--r-- 1 root root 16533820 Jun 25 05:21 initrd.img-2.6.32-30-pve
-rw-r--r-- 1 root root 16535006 Jul 28 12:57 initrd.img-2.6.32-31-pve
-rw-r--r-- 1 root root 16571003 Nov  9 09:12 initrd.img-2.6.32-34-pve
drwxr-xr-x 2 root root    12288 May 27 05:04 lost+found
-rw-r--r-- 1 root root  2637662 Nov  8 08:42 System.map-2.6.32-34-pve
-rw-r--r-- 1 root root  4298448 Nov  8 08:42 vmlinuz-2.6.32-34-pve
 
Ah, yes, indeed. But .old-dkms are not being removed. Don't know if they should be.
Code:
# ls -l /boot/
total 57M
-rw-r--r-- 1 root root 104K Nov  8 08:42 config-2.6.32-34-pve
drwxr-xr-x 4 root root 7.0K Nov  8 13:30 grub
-rw-r--r-- 1 root root  17M Nov  9 10:26 initrd.img-2.6.32-33-pve.old-dkms
-rw-r--r-- 1 root root  17M Nov  9 10:26 initrd.img-2.6.32-34-pve
-rw-r--r-- 1 root root  17M Nov  9 10:21 initrd.img-2.6.32-34-pve.old-dkms
drwx------ 2 root root  12K May 10  2014 lost+found
-rw-r--r-- 1 root root 2.6M Nov  8 08:42 System.map-2.6.32-34-pve
-rw-r--r-- 1 root root 4.1M Nov  8 08:42 vmlinuz-2.6.32-34-pve