Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make modules_install is dangerous
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
krotuss
Apprentice
Apprentice


Joined: 01 Aug 2008
Posts: 252

PostPosted: Sat Jun 14, 2025 4:44 pm    Post subject: make modules_install is dangerous Reply with quote

Hi, I have just discovered that make modules_install may be dangerous when rebuilding kernel. That is because if you have /boot on separate partition, and that partition is not yet mounted, and fs driver for /boot is built as module, you may not be able to modprobe it and finish kernel installation. I find it bit strange, given that old kernel is backed up as .old, that modules for actually running kernel are not preserved. Can this be prevented in way that does not require to mount either auto mount at boot or remember to mount /boot before building kernel? Maybe kernels 'make' can read some config from somewhere and auto mount boot?

Also I was not doing any extreme changes, basically just disabling some unnecessary modules to speed up kernel build, yet new ext4 module failed to load into running kernel. Is the way it works now, or I have just got unlucky?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jun 14, 2025 4:56 pm    Post subject: Reply with quote

krotuss,

That's a problem with your running kernel.
If you rebuild the same kernel version as you are running that are all sorts of ways to make the new modules incompatible with the running kernel. Don't do that.
There is a version in
Code:
make menuconfig
use it. You will get a new kernel version and new versioned modules too.
One gotcha is that not all out of tree modules respect that.

Getting a new kernel version is safe, and there is one most weeks.
_________________
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