It already use a custom kernel based on Debian (well technically one can say its a vanilla kernel with custom settings and then uses Debian as base along with some other custom stuff for FRR etc) but since then modified to fit the needs of VyOS.
Here is the current kernel config and in directory above you have everything else you need to compile your own custom kernel based on the VyOS settings (as in modify whatever you need in that directory and then build it to your taste):
Thanks for quick reply, I’m customizing a VyOS 1.5 ISO and I already have a precompiled custom kernel (including headers, modules, and hooks).
I’ve read that VyOS uses its own kernel configuration under scripts/package-build/linux-kernel/, but in my case, I don’t want to rebuild the kernel — I just want to include my own kernel files in the build process.
So my questions are:
Where should I place my custom kernel files (vmlinuz, modules/, headers/, and hooks) inside the VyOS build structure?
Should they go under packages/, scripts/package-build/linux-kernel/, or another directory?
Is there a recommended way to make the build system detect and use my kernel instead of compiling its own?