[opensuse] Old kernel source
There's a kernel source update, that fails to install due to lack of disk space. I see a bunch of kernels in /usr/src. I suppose some of those can be deleted to make room? tnx jk -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/01/2017 03:07 PM, James Knott wrote:
There's a kernel source update, that fails to install due to lack of disk space. I see a bunch of kernels in /usr/src. I suppose some of those can be deleted to make room?
Generally yes, but you may want to remove old kernels (and source) using Yast or at least zypper as that does a better job and may clear old images from /boot as well and catches dependencies. -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/01/2017 06:15 PM, John Andersen wrote:
On 04/01/2017 03:07 PM, James Knott wrote:
There's a kernel source update, that fails to install due to lack of disk space. I see a bunch of kernels in /usr/src. I suppose some of those can be deleted to make room? Generally yes, but you may want to remove old kernels (and source) using Yast or at least zypper as that does a better job and may clear old images from /boot as well and catches dependencies.
That is my plan, but in the mean time I just moved the oldest one to another partition. Once I've made more room, I can move it back and "officially" delete it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/01/2017 06:15 PM, John Andersen wrote:
On 04/01/2017 03:07 PM, James Knott wrote:
There's a kernel source update, that fails to install due to lack of disk space. I see a bunch of kernels in /usr/src. I suppose some of those can be deleted to make room? Generally yes, but you may want to remove old kernels (and source) using Yast or at least zypper as that does a better job and may clear old images from /boot as well and catches dependencies.
I've been using the rpm -e command. While it's definitely removing something and freeing up disk space, the files in /usr/src remain, along with the various files in /boot. I'll have to remove them manually. I guess I can remove all files in /boot with the same number as the kernel-source packages. Software management in Yast doesn't appear to list all the installed kernel-source packages, only the latest. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/01/2017 07:58 PM, James Knott wrote:
I guess I can remove all files in /boot with the same number as the kernel-source packages.
Yeah, but don't do that manually, there are utilities for that which also keep grub happy. -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sat, Apr 01, 2017 at 06:07:35PM -0400, James Knott wrote:
There's a kernel source update, that fails to install due to lack of disk space. I see a bunch of kernels in /usr/src. I suppose some of those can be deleted to make room?
rpm -q kernel-source kernel-default to see how many are installed. Check if the "purge-kernels.service" is enabled.... If you upgraded from older openSUSE the service might not be automatically enabled. systemctl status purge-kernels.service That service checks on boot that only two kernels are left (by default). If the above shows kernel-source or kernel-default installed more than 3 times, you an systemctl enable purge-kernels.service and start it once to avoid reboot. systemctl start purge-kernels.service Ciao, MArcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/02/2017 04:06 AM, Marcus Meissner wrote:
On Sat, Apr 01, 2017 at 06:07:35PM -0400, James Knott wrote:
There's a kernel source update, that fails to install due to lack of disk space. I see a bunch of kernels in /usr/src. I suppose some of those can be deleted to make room? rpm -q kernel-source kernel-default
to see how many are installed.
5 source and 6 default. I had previously removed 1 source
Check if the "purge-kernels.service" is enabled.... If you upgraded from older openSUSE the service might not be automatically enabled.
systemctl status purge-kernels.service
That service checks on boot that only two kernels are left (by default).
If the above shows kernel-source or kernel-default installed more than 3 times, you an
systemctl enable purge-kernels.service
and start it once to avoid reboot. systemctl start purge-kernels.service
That did the trick. There are now only 2 source & default and I've gone from a 99% full partition to 71%. tnx BTW, in the past, when a kernel was installed, it was necessary to reboot. That doesn't seem to be the case now. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
BTW, in the past, when a kernel was installed, it was necessary to reboot. That doesn't seem to be the case now.
Only if you want to run the newly installed kernel :-) -- Per Jessen, Zürich (16.2°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/02/2017 11:53 AM, Per Jessen wrote:
James Knott wrote:
BTW, in the past, when a kernel was installed, it was necessary to reboot. That doesn't seem to be the case now. Only if you want to run the newly installed kernel :-)
Well, given that this was a security update, wouldn't you want to? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
On 04/02/2017 11:53 AM, Per Jessen wrote:
James Knott wrote:
BTW, in the past, when a kernel was installed, it was necessary to reboot. That doesn't seem to be the case now. Only if you want to run the newly installed kernel :-)
Well, given that this was a security update, wouldn't you want to?
Well, all updates are supposed to be security updates, but most aren't really. In general, if the kernel is updated, I would want to reboot immediately to make sure I don't get woken up in the middle of the night a week or two later when some scheduled maintenance falls over due to something having gone wrong in the update. -- Per Jessen, Zürich (15.9°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/02/2017 09:25 AM, Per Jessen wrote:
Well, all updates are supposed to be security updates, but most aren't really. In general, if the kernel is updated, I would want to reboot immediately to make sure I don't get woken up in the middle of the night a week or two later when some scheduled maintenance falls over due to something having gone wrong in the update.
Exactly. And I thought opensuse used to give a warning to reboot after kernel updates in the past by a pop up. That doesn't happen lately. -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2017-04-02 a las 11:06 -0700, John Andersen escribió:
On 04/02/2017 09:25 AM, Per Jessen wrote:
Well, all updates are supposed to be security updates, but most aren't really. In general, if the kernel is updated, I would want to reboot immediately to make sure I don't get woken up in the middle of the night a week or two later when some scheduled maintenance falls over due to something having gone wrong in the update.
Exactly. And I thought opensuse used to give a warning to reboot after kernel updates in the past by a pop up. That doesn't happen lately.
It does here. If it doesn't happen, it typically is a packaging bug which you can report in Bugzilla. - -- Cheers Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAljhk60ACgkQja8UbcUWM1wzLQEAj910IbYS5Mom751LQY+lSqeD Z0leoxmxseWZQhDTO+gA/ip4rGaZkSNUene9KgWgNR1eDCv8pBDnPIAxw3Pw6OJ1 =IEru -----END PGP SIGNATURE-----
John Andersen wrote:
On 04/02/2017 09:25 AM, Per Jessen wrote:
Well, all updates are supposed to be security updates, but most aren't really. In general, if the kernel is updated, I would want to reboot immediately to make sure I don't get woken up in the middle of the night a week or two later when some scheduled maintenance falls over due to something having gone wrong in the update.
Exactly. And I thought opensuse used to give a warning to reboot after kernel updates in the past by a pop up. That doesn't happen lately.
I've just patched a 42.2 installation, it finished up saying "Warning: One of installed patches requires reboot of your machine. Reboot as soon as possible.". -- Per Jessen, Zürich (17.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2017-04-03 a las 15:00 +0200, Per Jessen escribió:
I've just patched a 42.2 installation, it finished up saying
"Warning: One of installed patches requires reboot of your machine. Reboot as soon as possible.".
YaST does it at the start. I suppose the idea is not to stop the procedure once started. Like starting it, going for a coffe, and return to find it waiting for you to press OK on a dialog and nothing done. - -- Cheers Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAljjZjUACgkQja8UbcUWM1y4YwEAkUvfV0j2QG+lKjztUqnj0hXn wUni1wGyNz4RZyAQ/+wA/0R0067fbJxL0SetRlDGnAqpEKAt/hdRYDGmJdKLPfLa =euXE -----END PGP SIGNATURE-----
participants (5)
-
Carlos E. R.
-
James Knott
-
John Andersen
-
Marcus Meissner
-
Per Jessen