El 16/8/18 a las 17:08, Stephen John Smoogen escribió:
On Thu, 16 Aug 2018 at 15:58, Robert Moskowitz rgm@htt-consult.com wrote:
On 08/16/2018 03:00 PM, Stephen John Smoogen wrote:
On Thu, 16 Aug 2018 at 14:44, Robert Moskowitz rgm@htt-consult.com wrote:
I just installed the new kernel on one of my Cubieboard2s. /boot used grew ~130MB.
Challenge is that my next board to update only has 43MB free. It currently has 3 kernels on it.
Is there a way to cleanly delete old kernel files prior to the update? In this case 4.9.30-203?
Are you meaning something like this?
[smooge@smoogen-laptop ~]$ rpm -q kernel kernel-3.10.0-693.21.1.el7.x86_64 kernel-3.10.0-862.el7.x86_64 kernel-3.10.0-862.2.3.el7.x86_64 kernel-3.10.0-862.3.2.el7.x86_64 kernel-3.10.0-891.el7.x86_64 [smooge@smoogen-laptop ~]$ uname -a # to see what you have running Linux smoogen-laptop.localdomain 3.10.0-891.el7.x86_64 #1 SMP Mon May 21 14:10:11 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux $ sudo rpm -e kernel-3.10.0-693.21.1.el7.x86_64 kernel-3.10.0-862.el7.x86_64 kernel-3.10.0-862.2.3.el7.x86_64
rpm -e kernel-4.9.30-203.el7.armv7hl
Did nothing. Just came back to the # prompt. And no reduction in space used in /boot and no change in 'ls /boot'. Or at least what I noticed.
Then you need to use the du command and see what is using up the space. Also check to make sure that the size is the same as the other systems to see why they have different amounts.
kernels for armhfp come in 3 parts (or more), there is kernel, kernel-core and kernel-modules, so you need to remove all those 3 for each kernel in order o actually free space.
rpm -qa "kernel*"|sort kernel-4.14.28-201.el7.centos.armv7hl kernel-4.14.52-201.el7.armv7hl kernel-core-4.14.28-201.el7.centos.armv7hl kernel-core-4.14.52-201.el7.armv7hl kernel-headers-4.14.52-201.el7.armv7hl kernel-modules-4.14.28-201.el7.centos.armv7hl kernel-modules-4.14.52-201.el7.armv7hl kernel-tools-4.14.52-201.el7.armv7hl kernel-tools-libs-4.14.52-201.el7.armv7hl
Pablo.