Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eclean-kernel errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
russellD
n00b
n00b


Joined: 07 Oct 2014
Posts: 28
Location: 28.5797S,153.338 E

PostPosted: Tue Feb 05, 2019 8:15 am    Post subject: eclean-kernel errors Reply with quote

Running eclean-kernel with -A (ask prior deletion) -n 3 (leave most recent three kernels), the script is attempting to delete current kernel!

here is output from eclean-kernel -A -n 3:
Code:
root@seedz:~#  eclean-kernel -A -n 3
Note: referenced kernel does not exist: /boot/root/16                                                                                                           
Remove genkernel-x86_64-4.19.7-gentooSeedz-00 (vmlinuz does not exist, not referenced by bootloader (grub2))? [Yes/No]n
Remove genkernel-x86_64-4.20.6-gentooSeedz-00 (vmlinuz does not exist)? [Yes/No]n
Remove genkernel-x86_64-4.19.10-gentooSeedz-00 (vmlinuz does not exist, not referenced by bootloader (grub2))? [Yes/No]n
Remove genkernel-x86_64-4.19.9-gentooSeedz-00 (vmlinuz does not exist, not referenced by bootloader (grub2))? [Yes/No]n
Remove genkernel-x86_64-4.20.5-gentooSeedz-00 (vmlinuz does not exist)? [Yes/No]n


and file listing from /boot:
Code:
 root@seedz:~# ls /boot                                                                                                           
System.map-4.19.1-gentooSeedz-00       config-4.19.1-gentooSeedz-00       grub                                               vmlinuz-4.19.10-gentooSeedz-00.old
System.map-4.19.10-gentooSeedz-00      config-4.19.10-gentooSeedz-00      initramfs-genkernel-x86_64-4.19.10-gentooSeedz-00  vmlinuz-4.19.2-gentooSeedz-00
System.map-4.19.10-gentooSeedz-00.old  config-4.19.10-gentooSeedz-00.old  initramfs-genkernel-x86_64-4.19.7-gentooSeedz-00   vmlinuz-4.19.2-gentooSeedz-00.old
System.map-4.19.2-gentooSeedz-00       config-4.19.2-gentooSeedz-00       initramfs-genkernel-x86_64-4.19.9-gentooSeedz-00   vmlinuz-4.19.7-gentooSeedz-00
System.map-4.19.2-gentooSeedz-00.old   config-4.19.2-gentooSeedz-00.old   initramfs-genkernel-x86_64-4.20.5-gentooSeedz-00   vmlinuz-4.19.7-gentooSeedz-00.old
System.map-4.19.7-gentooSeedz-00       config-4.19.7-gentooSeedz-00       initramfs-genkernel-x86_64-4.20.6-gentooSeedz-00   vmlinuz-4.19.9-gentooSeedz-00
System.map-4.19.7-gentooSeedz-00.old   config-4.19.7-gentooSeedz-00.old   lost+found                                         vmlinuz-4.20.5-gentooSeedz-00
System.map-4.19.9-gentooSeedz-00       config-4.19.9-gentooSeedz-00       memtest86plus                                      vmlinuz-4.20.6-gentooSeedz-00   
System.map-4.20.5-gentooSeedz-00       config-4.20.5-gentooSeedz-00       vmlinuz-4.19.1-gentooSeedz-00                               
System.map-4.20.6-gentooSeedz-00       config-4.20.6-gentooSeedz-00       vmlinuz-4.19.10-gentooSeedz-00


so if eclean-kernel was run like this, then most recent and second and third most recent current kernels would be deleted!
as in 4.20.6, 4.20.5, 4.19.10

so how can I check if this some funkiness in my Gentoo setup?

thanks in advance!
Back to top
View user's profile Send private message
Lebkoungcity
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2008
Posts: 125
Location: Lebkoungcity (='Gingerbreadcity' =Nuremberg)

PostPosted: Sat Feb 09, 2019 10:51 am    Post subject: Reply with quote

Hello,

you posted this:
russellD wrote:

(...)
Note: referenced kernel does not exist: /boot/root/16
Remove genkernel-x86_64-4.19.7-gentooSeedz-00 (vmlinuz does not exist, not referenced by bootloader (grub2))?
(...)


That's interesting. What is the kernel you're running at the moment / what's the output of:
Code:
uname -r


And it might be interesting to see the content of your /boot with the date when each file was put into it. So, what's the output of:
Code:
ls -lh /boot


And which kernels are in the config-file of your bootloader? If you're using sys-boot/grub (which is what's implicated in your post) it should be:
Code:
/boot/grub/grub.cfg

If you're not comfortable with the syntax you could easily run
Code:
grub-mkconfig -o /boot/grub/grub.cfg

This should reconfigure grub.cfg automatically depending on the content of /boot. After a reboot your machine should run the latest kernel out of those in your /boot.

Then I would expect eclean-kernel to give you reasonable results.

Greetings,
Andy
_________________
"The most dangerous world view is the world view of the ones who haven't viewed the world."
Alexander von Humboldt (1769-1859)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum