On 03/03/2018 11:45 PM, Anton Aylward wrote:
On 03/03/18 08:19 AM, Carlos E. R. wrote:
The assumption is "you've *not* done things cleanly/properly" and "unnecessary kernels are listed in grub". I wouldn't say "unnecessary", I'd say 'non existent' or 'incomplete'. If someone had manually deleted a kernel from /boot or a set of modules from /lib then it is inconsistency that is the issue.
That's why I say DON'T DO THAT.
Using 'purge-kernels' is the high level way of dealing with it. Yes you can do the 'zypper rm <old kernel package>' or even the 'rpm -e <old kernel package>', that eventually 'purge-kernels' uses, but why? The higher level tool does consistency checks and deals with sources and a more. Yes the 'more' may or may not apply in your case, but ... there's some reasons and ... well go see the source of 'purge-kernels'.
Yes in my case because I was unaware of the purge-kernels service before this started, and the fault happened right in the middle of the upgrade. One module of a new kernel had been installed, but the other modules would not install, because there was no room on the drive. I had searched for where the partition was filling up, and not knowing what else to do at the time, had removed some modules of old kernels. So then when I started to use the purge-kernels service, after people here made me aware of it. I found that the reason it was failing to start was because of the things I had done earlier - removing some kernel modules manually, but not removing others. So by that point, the only way to get purge-kernels to work at all was to try and start it, look at what was causing it to fail (incomplete kernel installations), manually delete those incomplete pieces, and try running it again. I think I had about 4 incomplete kernel installations that I had to manually delete, but another 4 that were complete. So once I had manually removed all the incomplete installations, I was able to finally run purge-kernels and make it work. Then it looked through my system and found the other old kernel installations, which were complete but un-necessary, and deleted them the proper way. So my system is much cleaner now. Again, thanks to everyone for helping me figure this out. I am still thinking about future re-partitioning of my SSD so there is more room in the root, but haven't decided yet what to do. In the meantime, I am glad I at least have room on my drive to work and run updates now. -- George Box: 42.3 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: 42.3 | Gnome 3.20 | AMD FX 7TH GEN | 64 | 32GB Laptop #2: 42.3 | Gnome 3.20 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org