Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[No panic] hardened-sources not booting with allmodconfig
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
Kinokoio
n00b
n00b


Joined: 21 Apr 2016
Posts: 2

PostPosted: Thu Apr 21, 2016 5:49 am    Post subject: [No panic] hardened-sources not booting with allmodconfig Reply with quote

Hi. I still havent got the hang on configuring the kernel system, but I got this problem. Does anyone has problems when using the allmodconfig in hardened sources? The kernel does compile, and it passes 'make kselftest'.

But at the moment of booting, the computer just freezes while loading the kernel, and fans start going at full speed. Is this config not supposed to work on thr first place, or am I doing something wrong?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Apr 21, 2016 7:45 pm    Post subject: Reply with quote

Kinokoio,

Welcome to Gentoo.

allmodconfig will not work unaided. All the modules you need to boot will be stored in /lib/modules/... on the root filesystem.
However, you need some of them to mount the root filesystem to read /lib/modules/... to mount root.

allmodconfig can be made to work. You must use an initrd to store at least the modules needed for booting.
The initrd is loaded by the boot loader and used by the kernel as a temporary root filesystem.
_________________
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
Kinokoio
n00b
n00b


Joined: 21 Apr 2016
Posts: 2

PostPosted: Sat Apr 23, 2016 5:18 am    Post subject: Reply with quote

I see. So thats why it never completed the loading...

Well, now I have tried using the allyesconfig. To my surprise, it didnt worked again, ending in a panic after unlocking my crypto partition. I have used gentoo several times, but I never tried to compile the kernel well. I used genkernel for the configurstion, so i lacked things like sound or suspending to ram.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 23, 2016 12:18 pm    Post subject: Reply with quote

Kinokoio,

What is encrypted?

If you need any user space tools to access root, you are compelled to use and initrd to hold them.

Some examples
mounting root using root=UUID= ... needs the mount command.
root on raid ... needs mdadm so start the raid set.
root on a logical volume ... needs LVM2 to expose the logical volume(s).
There are more to do with crypto too.

You can still use genkernel to build your kernel. The menuconfig option lets you customise the config before you build.
You may save custom configs for further use.
_________________
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