View previous topic :: View next topic |
Author |
Message |
pmam Veteran
Joined: 30 Dec 2013 Posts: 1145
|
Posted: Mon Jan 22, 2018 8:08 am Post subject: [SOLVED] How keep linux--4.14.8-r1 kernel? |
|
|
After last system updating I get this portage's massages:
Code: | * Messages for package sys-fs/udisks-2.7.4-r1:
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources
* Unable to calculate Linux Kernel version for build, attempting to use running version
* You should reboot the system now to get /run mounted with tmpfs!
* Messages for package gnome-extra/gnome-color-manager-3.24.0:
* If you want to do display or scanner calibration, you will need to
* install media-gfx/argyllcms
* Messages for package app-misc/tracker-1.12.4:
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources
* Unable to calculate Linux Kernel version for build, attempting to use running version |
Also see that have only old source kernel:
Code: | select kernel list
Available kernel symlink targets:
[1] linux-4.9.76-gentoo-r1 |
However I am using this kernel (genkernel):
Code: | uname -a
Linux new-host.home 4.14.8-gentoo-r1 #1 SMP Sat Dec 23 12:54:19 IST 2017 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz GenuineIntel GNU/Linux |
Code: | /usr/src $ ls -l
total 12
lrwxrwxrwx 1 root root 22 Dec 23 11:55 linux -> linux-4.14.8-gentoo-r1
drwxr-xr-x 22 root root 4096 Dec 23 22:04 linux-4.12.12-gentoo
drwxr-xr-x 4 root root 4096 Jan 11 08:00 linux-4.14.8-gentoo-r1
drwxr-xr-x 25 root root 4096 Jan 21 12:31 linux-4.9.76-gentoo-r1
|
I know about issues with 4.14 but I am not affected. So in order to keep my 4.14.kernel I saw this topic:
https://forums.gentoo.org/viewtopic-t-1074546.html
But after adding =sys-kernel/gentoo-sources-4.14.8-r1 ~amd64 to package.accept_keywords (Is it ok?),
and re-updating system, still have same issue. Please advise hoe to keep 4.14 kernel? _________________ “You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Last edited by pmam on Tue Jan 23, 2018 5:48 pm; edited 1 time in total |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8938
|
Posted: Mon Jan 22, 2018 10:24 am Post subject: |
|
|
Just install 4.14.14, no reason to stay on old .8. |
|
Back to top |
|
|
Ralphred Guru
Joined: 31 Dec 2013 Posts: 503
|
Posted: Mon Jan 22, 2018 2:18 pm Post subject: |
|
|
Looks like a depclean took out the sources but left the ancillary files and therefore the redundant directories intact.
4.14.8 isn't in the tree any more, so update your package.keywords to include Code: | =sys-kernel/gentoo-sources-4.14.14 ~amd64 | install the 14.14 sources, copy your 14.8 .config, config and build the .14 and manually add Code: | sys-kernel/gentoo-sources-4.14.14 | to /var/lib/portage/world to stop depclean "cleaning" it in future.
That should sort you out until the next spectre style scandal... |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54305 Location: 56N 3W
|
Posted: Mon Jan 22, 2018 5:41 pm Post subject: |
|
|
pmam,
Don't keep that kernel, its not Meltdown/Spectre proof. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pmam Veteran
Joined: 30 Dec 2013 Posts: 1145
|
Posted: Mon Jan 22, 2018 8:07 pm Post subject: |
|
|
I have done all your tips: Added 4.14.14 to package.keywords and emerge it,
then copy configuration genkernel from the old kernel:
Code: | # genkernel --kernel-config=/etc/kernels/kernel-config-x86_64-version_you_want all |
and after compilation everything work ok
Also added sys-kernel/gentoo-sources-4.14.14 to /var/lib/portage/world
Now I want to delete old kernel - Please advise how to do it: By rm from /usr/src or unmerge?
Thanks you all _________________ “You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...” |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54305 Location: 56N 3W
|
Posted: Mon Jan 22, 2018 8:38 pm Post subject: |
|
|
pmam.
Code: | emerge --depclean -a =gentoo-sources-<ver> | will remove gentoo-sources-<ver> source code from /usr/src and the entry from portages database of installed packages.
Importantly, gentoo-sources will remain is your world file.
You can now remove the remains from /usr/src with the rm command.
The kernel will still be in /boot and its modules will be in /lib/modules/ until you remove them.
It will still work until you do that. Don't be in too much of a hurry though, as its always good to have a spare working kernel around, it saves finding your install media.
I purge old kernels when /boot is nearly full and keep two old ones. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|