This project provides a comprehensive set of scripts to manage custom kernels on systems using kernelstub
and systemd-boot
. The scripts are designed to work seamlessly with Pop!_OS, automating the process of setting and updating custom kernels.
While this tool should work on all systems, that use kernelstub
and systemd-boot
, only Pop!_OS is tested and supported at this moment.
- Interactive CLI: Easily select and set your custom kernel through an intuitive command line interface.
- Configuration Initialization: Automatically initialize configuration files using
kernelstub
outputs. - Automated Kernel Updates: Automatically update to the next available custom kernel after system upgrades.
- Dry Run Mode: Preview actions without making any changes to your system.
-
Clone the repository:
git clone https://github.com/cloudishBenne/custom-kernel.git cd custom-kernel
-
Run the installation script:
sudo ./install.sh
Usage: custom-kernel [OPTION]
Manage custom kernels on systems that use kernelstub.
Options:
-d, --dry-run Print actions without executing them.
-u, --update Update to the next available custom kernel.
-i, --init-config Initialize the configuration file. Uses the values from kernelstub.
-h, --help, help Display this help message.
Default behavior (no option provided or with --dry-run only):
Starts an interactive command line dialog to select and set a custom kernel.
-
Initialize Configuration:
sudo custom-kernel --init-config
-
Set Custom Kernel (Interactive CLI):
sudo custom-kernel
-
Update to Next Available Custom Kernel:
sudo custom-kernel --update
-
Dry Run Mode:
sudo custom-kernel --dry-run sudo custom-kernel --dry-run --update sudo custom-kernel --dry-run --init-config
I welcome contributions! Please fork the repository and submit a pull request for any enhancements or bug fixes.
This project is licensed under the GPL-3.0 License. See the LICENSE file for details.
If you encounter any issues or have questions, please open an issue on the GitHub repository issues.
Enjoy managing your custom kernels with ease!