我无法安装刚刚构建的自定义 gentoo 内核

我无法安装刚刚构建的自定义 gentoo 内核

我已经用这个命令构建了内核
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 [email protected]. 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

我只是把它放在--no-ramdisk-modules最后就解决了。
这可能不是最好的解决方案,但它对我有用。

相关内容