On 02/01/18 19:26, Stroller wrote: > >> On 2 Jan 2018, at 11:54, Kruglov Sergey <kr_se...@hotmail.com> wrote: >> >> Now I have gentoo-sources-4.14.8-r1 installed. >> After "emerge --ask --update --deep --with-bdeps=y --newuse @world" command >> emerge installs old kernel in NS (after first update 4.12.12, after second >> update 4.9.49-r1). >> How can I fix it? >> There is sys-kernel/gentoo-sources in my world set. > > Remove sys-kernel/gentoo-sources from your world file - I believe you can do > this using the emerge command, but am unsure of the right syntax; you can > just edit /var/lib/portage/world and delete the appropriate line.D > > Now `emerge -n =sys-kernel/gentoo-sources-4.14.8-r1` - "This option can be > used to update the world file without rebuilding the packages." > > This pins your kernel version at 4.14.8-r1 and you can update when, in > future, you decide it's time to update your kernel, without being nagged > about it every time a new version is release or you emerge world. > > For this reason it's always best to emerge kernels with an equals sign, > pinning them at some specific version, IMO. > Why???
> This suggestion may provoke responses that the kernel is important and you > should update it to ensure you get security updates - look at the attack > vectors, you're probably sitting behind a NAT router, with very few ports > exposed to the internet. > > It's adequate to update your kernel every 3 months. > You should also check the CVEs every time there's a new kernel! What this completely misses, is that gentoo-sources merely DOWNLOADS THE LATEST KERNEL SOURCE. So updating gentoo-sources every time does nothing to change the kernel you are running. Just leave gentoo-sources in your world file, and don't necessarily compile and update your running kernel just because gentoo-sources has had an update. I normally do not clean out kernels from my grub.conf until I've built up enough to be annoying, so downgrading a broken kernel is just a quick edit away ... Cheers, Wol