[pve-devel] [PATCH pve-kernel] fix #3781: add Provides: wireguard-modules to control.in

Stoiko Ivanov s.ivanov at proxmox.com
Fri Dec 10 17:49:47 CET 2021

without this line `apt install wireguard` pulls in Debian's kernel +
firmware which confilcts with pve-firmware - forcing users to install
via `apt install --no-install-recommends wireguard-tools` in order
to get the userspace utils.

For Debian's upstream kernel the linux-image-amd64 provides the
modules [0] - since pve-kernel- at KVNAME@ already provides linux-image
this should be the place where we add the provides

versioned dependency added since wireguard has a versioned dependency
on wireguard-modules.

[0] https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/templates/control.image.meta.in

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
* quickly tested by building a kernel with this patch - installing it in a VM
  and running `apt install wireguard` afterwards
 debian/control.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/control.in b/debian/control.in
index ee91978..fd8f4cb 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -59,7 +59,7 @@ Package: pve-kernel- at KVNAME@
 Section: admin
 Priority: optional
 Architecture: any
-Provides: linux-image
+Provides: linux-image, wireguard-modules (= 1.0.0)
 Suggests: pve-firmware
 Depends: busybox, initramfs-tools
 Recommends: grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub-efi-arm64
@@ -68,7 +68,7 @@ Description: The Proxmox PVE Kernel Image
 Package: pve-kernel- at KVNAME@-dbgsym
 Architecture: any
-Provides: linux-debug
+Provides: linux-debug, wireguard-modules (= 1.0.0)
 Section: devel
 Priority: optional
 Build-Profiles: <pkg.pve-kernel.debug>

More information about the pve-devel mailing list