Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Dist-bin config is not working for gentoo-sources
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
SDD701
n00b
n00b


Joined: 18 Feb 2023
Posts: 23

PostPosted: Sat Sep 23, 2023 8:31 am    Post subject: [SOLVED] Dist-bin config is not working for gentoo-sources Reply with quote

Hi. I want to switch from dist-bin kernel to gentoo souces, I've changed symlink using eselect kernel, then copied bin kernel config from boot to /usr/src/linux then run inside there

Code:
 make oldconfig &&  make &&  make install_modules &&  make install && dracut -f


Now when I boot compiled kernel I get
Quote:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)


What could be wrong? Bin kernel with the same config is booting fine


Last edited by SDD701 on Sat Sep 23, 2023 2:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2688

PostPosted: Sat Sep 23, 2023 8:53 am    Post subject: Reply with quote

It's modules_install, not install_modules. If you had run the commands separately you would have noticed the error.

Best Regards,
Georgi
Back to top
View user's profile Send private message
SDD701
n00b
n00b


Joined: 18 Feb 2023
Posts: 23

PostPosted: Sat Sep 23, 2023 10:19 am    Post subject: Reply with quote

logrusx wrote:
It's modules_install, not install_modules. If you had run the commands separately you would have noticed the error.

Best Regards,
Georgi



Yea, I was typing commands from my memory, probably it was modules_install because this prompt ends with dracut logs and && wouldn't let it execute it if there was a typo
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2688

PostPosted: Sat Sep 23, 2023 12:13 pm    Post subject: Reply with quote

The other posiblity is dracut -f recreated your running kernel's initramf. Specify a version. Why did you even include force option? It's necessary only if you recreate running kernel's initramfs. Not that it's wrong but it's suspicious.

Best Regard,
Georgi
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23082

PostPosted: Sat Sep 23, 2023 12:27 pm    Post subject: Re: Config from dist-bin is not working for gentoo-sources Reply with quote

SDD701 wrote:
Now when I boot compiled kernel I get
Quote:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)
What could be wrong? Bin kernel with the same config is booting fine
Although old, we have an FAQ that addresses this: KC13: I just installed a new kernel and it won't boot. Have you read that FAQ and checked the points it makes regarding your error? If you still need help, please pastebin the working and broken kernel configurations, and show us how you boot each of them (grub.cfg lines or equivalent).
Back to top
View user's profile Send private message
SDD701
n00b
n00b


Joined: 18 Feb 2023
Posts: 23

PostPosted: Sat Sep 23, 2023 2:24 pm    Post subject: Reply with quote

logrusx wrote:
The other posiblity is dracut -f recreated your running kernel's initramf. Specify a version. Why did you even include force option? It's necessary only if you recreate running kernel's initramfs. Not that it's wrong but it's suspicious.

Best Regard,
Georgi


That's it! running
Code:
dracut --kver 6.1.53-gentoo-r1-gentoo-dist
solved it. It was -f because my knowledge of how dracut work is poor, After re-reading some docs I've increased some understanding of it. Thank you very mush.
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