I would like to create a minimal kernel for a web server.
When you compile a kernel from source how do you get hardware info and then know what drivers need to be kept in the kernel so the rest can be removed?
There is a helpful script shipped with more recent kernels,
Another way to accomplish the same thing manually is to use
You then start the compilation process with the
In both cases, it is paramount that you ensure that you have everything you need listed in
The first (several) times you do this, review the generated
The Arch Wiki has a page on compiling the traditional way and includes details on using