diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c076953..89575b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -272,6 +272,14 @@ jobs: echo "==> Package info (truenas-proxmox-multipath):" dpkg-deb --info "${{ steps.vars.outputs.multipath_deb_file }}" + # Multipath calls the base plugin's private helpers and SUPER:: methods, + # so it must be pinned to the exact base version built alongside it (#299). + VERSION="${{ steps.vars.outputs.version }}" + DEPENDS="$(dpkg-deb -f "${{ steps.vars.outputs.multipath_deb_file }}" Depends)" + echo "==> multipath Depends: ${DEPENDS}" + echo "${DEPENDS}" | grep -qF "truenas-proxmox (= ${VERSION})" \ + || { echo "::error::multipath must depend on truenas-proxmox (= ${VERSION})"; exit 1; } + - name: Upload package artifacts uses: actions/upload-artifact@v4 with: diff --git a/README.md b/README.md index 8d6308e..2d278ca 100644 --- a/README.md +++ b/README.md @@ -367,7 +367,7 @@ sudo apt update && sudo apt install truenas-proxmox-multipath -This installs `open-iscsi` and `multipath-tools` as dependencies and registers the `truenas-multipath` storage type. See [Configuration → Multipath Storage](#multipath-storage) for the extra field it needs, and [docs/architecture.md](docs/architecture.md) for how it differs from the default single-path `iscsi://` model. +This installs `open-iscsi` and `multipath-tools` as dependencies and registers the `truenas-multipath` storage type. From v4.0.2 on, the package requires the **exact same version** of `truenas-proxmox`, so apt always upgrades (or holds) the two together ([#299](https://github.com/TheGrandWazoo/freenas-proxmox/issues/299)). See [Configuration → Multipath Storage](#multipath-storage) for the extra field it needs, and [docs/architecture.md](docs/architecture.md) for how it differs from the default single-path `iscsi://` model. --- diff --git a/packaging/DEBIAN-multipath/control.j2 b/packaging/DEBIAN-multipath/control.j2 index 8d65a77..81ce793 100644 --- a/packaging/DEBIAN-multipath/control.j2 +++ b/packaging/DEBIAN-multipath/control.j2 @@ -2,7 +2,7 @@ Package: truenas-proxmox-multipath Version: ${VERSION} Architecture: all Maintainer: KSA Technologies, LLC -Depends: truenas-proxmox (>= 3.1.0), open-iscsi, multipath-tools +Depends: truenas-proxmox (= ${VERSION}), open-iscsi, multipath-tools Section: perl Priority: optional Homepage: https://github.com/TheGrandWazoo/truenas-proxmox