[pve-devel] [PATCH kernel-meta 2/3] rules: add check for kernel version consistency

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Dec 15 10:35:13 CET 2025


postinst and d/control should refer to the same version, fail the build
otherwise. the build failure will be fixed with the next commit.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 debian/rules | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index cb304a5..8bca11a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,16 @@
 # -*- makefile -*-
 
 # Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
+
+KERNEL_VER=6.17
+
+build: debian/check-no-old-kver.stamp
+
+debian/check-no-old-kver.stamp: debian/control
+	grep "proxmox-kernel-${KERNEL_VER}" debian/control
+	grep "vmlinuz-${KERNEL_VER}" debian/*.postinst
+	touch $@
 
 %:
 	dh $@
-- 
2.47.3





More information about the pve-devel mailing list