Skip to content

Instantly share code, notes, and snippets.

@phdelodder
Created September 5, 2020 07:01
Show Gist options
  • Save phdelodder/0a7860fb10189970aef5f62c395e9b7e to your computer and use it in GitHub Desktop.
Save phdelodder/0a7860fb10189970aef5f62c395e9b7e to your computer and use it in GitHub Desktop.
#!/bin/bash
#install required packages:
sudo apt install git-core lintian build-essential automake autoconf libtool
sudo apt install debhelper python3-stdeb sphinx-common asciidoc-base bison flex libdw-dev libelf-dev libiberty-dev libnuma-dev libslang2-dev libssl-dev lz4 xmlto zlib1g-dev
#get the source
cd ~/src
sudo rm -rf pve-kernel
git clone git://git.proxmox.com/git/pve-kernel.git --depth 1
cd pve-kernel
#get the custom patch(es)
#https://forum.level1techs.com/t/navi-reset-kernel-patch/147547
cp ~/bin/navi-reset-kernel.patch patches/kernel
#compile the kernel
sudo make
#install the kernel
sudo dpkg -i *.deb
echo "reboot is recommended"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment