View previous topic :: View next topic |
Author |
Message |
SDD701 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1958286093669fdfe522ac8.jpg)
Joined: 18 Feb 2023 Posts: 23
|
Posted: Sat Sep 23, 2023 8:31 am Post subject: [SOLVED] Dist-bin config is not working for gentoo-sources |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
logrusx Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/176594205966916859b5145.jpg)
Joined: 22 Feb 2018 Posts: 2688
|
Posted: Sat Sep 23, 2023 8:53 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
SDD701 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1958286093669fdfe522ac8.jpg)
Joined: 18 Feb 2023 Posts: 23
|
Posted: Sat Sep 23, 2023 10:19 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
logrusx Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/176594205966916859b5145.jpg)
Joined: 22 Feb 2018 Posts: 2688
|
Posted: Sat Sep 23, 2023 12:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23082
|
Posted: Sat Sep 23, 2023 12:27 pm Post subject: Re: Config from dist-bin is not working for gentoo-sources |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
SDD701 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1958286093669fdfe522ac8.jpg)
Joined: 18 Feb 2023 Posts: 23
|
Posted: Sat Sep 23, 2023 2:24 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|