Я собрал ядро ​​с помощью этой команды
make && make modules_install && make install.

Я пытаюсь установить специальное ядро, которое только что собрал, с помощью этой команды.
genkernel --install --kernel-config=.config initramfs

Но это дает мне следующий результат:

* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --install --kernel-config=.config initramfs

* Working with Linux kernel 5.15.11-gentoo for x86_64
* Using kernel config file '/usr/src/linux-5.15.11-gentoo/.config' ...

* Current kernel's LOCALVERSION is set to ''; Will ignore set --kernel-localversion value '-x86_64' because kernel was not build ...

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
*         >> Appending eudev cpio data ...
*         >> Appending devicemanager cpio data ...
*         >> Appending auxiliary cpio data ...
*         >> Appending busybox cpio data ...
*         >> Appending modprobed cpio data ...
*         >> Appending modules cpio data ...
* ERROR: '/lib/modules/5.15.11-gentoo' does not exist! Did you forget to compile kernel before building initramfs? If you know what you are doing please set '--no-ramdisk-modules'.
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
* 
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* '/var/log/genkernel.log' so that your issue can be dealt with effectively.
* 
* Please do *not* report kernel compilation failures as genkernel bugs!```
I don't know how to solve it and there is almost nothing I can find about this online, what should I do?
-1
TwoLeftShoes 26 Дек 2021 в 17:39
Да!
 – 
TwoLeftShoes
26 Дек 2021 в 18:11

1 ответ

Я просто поставил --no-ramdisk-modules в конце, и это решило проблему.
Это, вероятно, не лучшее решение, но оно сработало для меня.

1
TwoLeftShoes 26 Дек 2021 в 18:13