I'm trying to compile and install a kernel. After download the code and configure the installation I have executed succesfully these comands:
# make bzImage # make modules # make
But when I try to execute this other command:
# make install
I've got this error:
[root@Asterix linux-4.18.5]# make install sh ./arch/x86/boot/install.sh 4.18.5 arch/x86/boot/bzImage \ System.map "/boot" depmod: ERROR: could not open directory /lib/modules/4.18.5: No such file or directory depmod: FATAL: could not search modules: No such file or directory Kernel version 4.18.5 has no module directory /lib/modules/4.18.5 [root@Asterix linux-4.18.5]#
What am I doing wrong? How can I fix this error?