View previous topic :: View next topic |
Author |
Message |
krotuss Apprentice

Joined: 01 Aug 2008 Posts: 252
|
Posted: Sat Jun 14, 2025 4:44 pm Post subject: make modules_install is dangerous |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55347 Location: 56N 3W
|
Posted: Sat Jun 14, 2025 4:56 pm Post subject: |
|
|
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 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 |
|
 |
|
|
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
|
|