Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

attempting to install new kernel, error modules.order & Makefile Error 2

Attempting to install a new kernel. once it is compiled, I enter:

su -c "make modules_install install"

this error populates :

sed: can't read modules.order: No such file or directory
make[1]: *** [Makefile:1304: _modinst_] Error 2
make: *** [Makefile:327: __build_one_by_one] Error 2

What is the solution?

like image 696
maaaaannn Avatar asked Apr 17 '20 17:04

maaaaannn


Video Answer


1 Answers

I've had the same issue compiling Linux Kernel 5.6.14 on Debian 10.4 using config from my current working Linux Kernel 4.19.0 inside VirtualBox.

make oldconfig
make
make modules_install

gave me the same output. After commenting line CONFIG_SYSTEM_TRUSTED_KEYS in config which I copied to Linux Kernel 5.6.14 source directory and repeating from the start make took much longer and then I was able to do make modules_install.

Found here, don't know why it worked, sorry I'm new at this.

like image 167
gacuxz Avatar answered Sep 17 '22 06:09

gacuxz