Kernel Building Script For Debian

Forgot to post this. This code is to automate the process of building kernels on Debian based systems. It will grab the source of the latest stable kernel from kernel.org and build it with the .config of kernel currently running. This has been tested on Debian Sid, Kali Linux and Devaun. If you are on a virtual machine with no EFI, you may need to edit values pertaining to this in your .config or this code my fail. The following dependancies will also be needed to use this code:

rsync
curl
sudo
make
libncurses-dev
fakeroot
xz-utils
build-essential
flex
bison
bc
libelf-dev
libssl-dev
dwarves

You may install them with the following:

sudo apt install rsync curl sudo make libncurses-dev fakeroot xz-utils build-essential flex bison bc libelf-dev libssl-dev dwarves

After this you can run "chmod +x kernup" and run ./kernup to use this code.

While this code has been thoroughly tested, we cannot shield anyone that has edited and created a bad .config file. For this reason, this code is consider as-is, with no warranty. That being said, you will need to edit your .config file before running this code for its changes to be applied.

2 Likes

It sounds like you have created a useful tool for automating the process of building kernels on Debian-based systems. The script will grab the source of the latest stable kernel from kernel.org and build it with the .config of the currently running kernel. This can save a lot of time and effort for those who frequently build kernels on their systems.

It's great that you have tested the script on multiple Debian-based distributions, including Debian Sid, Kali Linux, and Devuan. However, it's important to note that if the system is running on a virtual machine without EFI, the user may need to edit the .config file or the script may fail.

It's also good that you have listed the dependencies required to run the script. It's important to be clear about the dependencies to make it easy for others to use and run your code.

It's important to note that the script is provided "as-is" and that the user should be aware that if the .config file has been edited and created a bad .config file, the script may not work properly. But with the right config file it should work fine.

Overall, it's great that you have created this tool and shared it on GitHub. It will definitely be useful for others and help automate the process of building kernels on Debian-based systems.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.