Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] accidental kernel removal
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
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 487
Location: Sao Paulo, Brazil

PostPosted: Thu Oct 29, 2015 6:47 pm    Post subject: [SOLVED] accidental kernel removal Reply with quote

Hi there,
I've accidentally removed (depclean unprotected) the gentoo-source-4.0.0 which is not in the portage anymore. Also, I couldn't found the accompanied patches files to emerge that old ebuild. Only sources have been delete. That is, I have the compiled kernel image and modules as well. If I make the linux link to this kernel, would be possible to install it on MBR without any problems? I usually use grub2-install to copy it to a efi partition. My idea is to keep things working util I have time to check kernel options and rebuild the current kernel.
Best.


Last edited by ferreirafm on Fri Nov 13, 2015 8:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44050
Location: 56N 3W

PostPosted: Thu Oct 29, 2015 7:14 pm    Post subject: Reply with quote

ferreirafm,

You do not need the sources. --depclean will have left behind your .config and all the binaries left over for your last kernel build.

The modulse will still be there but make modules_install will no longer run as Makefile is missing.
The file that is installed to /boot (not the MBR) will still be at arch/x86/boot/bzImage inside the kernel tree.

That --depclean removed your kernel means that you have a newer kernel in /usr/src, even if you are not using it.

To get the original ebuild back you need to rummage in the attic.
If you decide to do that, put it in your overlay or emerge --sync will remove it again.
You probably still have the sources in /usr/portage/distfiles
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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