Patching PVE on update

AngryAnt

Member
Mar 13, 2021
16
7
8
I have a small patch for PVE (adds a 10 minute timeout to booting VMs during backup), which I have been manually applying and re-applying after each PVE update.

The re-applying is getting a bit tedious, so I was wondering if anyone might have suggestions on how to save this patch for auto-application whenever PVE gets updated?
 
You can create an APT hook that automatically runs your patch routing. Create a file in /etc/apt/apt.conf.d/<yourname>:

Code:
DPkg::Post-Invoke {"/usr/bin/test -e </path/to/your/command.sh> && </path/to/your/command.sh> || true" ; };

In your command you then can check if you need to apply your patch and then apply it (or not).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!