debian: make sure depmod uses the correct version

By default it uses the currently running kernel, which is not necessary
the kernel the package was built for. Fix this by generating the path on
package creation stage.
This commit is contained in:
Konstantin Kharlamov
2021-05-19 15:42:04 +03:00
parent bd2cfd4bb2
commit 93d07f966e
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -369,6 +369,8 @@ dpkg: ../scst_$(VERSION).orig.tar.gz
<debian/scst.dkms.in >debian/scst.dkms && \
sed 's/%{KVER}/$(KVER)/' \
<debian/scst.preinst.in >debian/scst.preinst && \
sed 's/%{KVER}/$(KVER)/' \
<debian/scst.postinst.in >debian/scst.postinst && \
output_files=( \
../*_$(VERSION)-$(DEBIAN_REVISION)_*.deb \
../*_$(VERSION)-$(DEBIAN_REVISION)_*.ddeb \
+2 -1
View File
@@ -29,7 +29,8 @@ export KDIR=$(DEB_KDIR_SET)
clean:
dh_testdir && \
dh_prep -Xqla_isp/TAGS -Xdebian/changelog && \
scripts/clean-source-tree -x debian/changelog -x debian/compat -x debian/scst.preinst
scripts/clean-source-tree -x debian/changelog -x debian/compat -x debian/scst.preinst \
-x debian/scst.postinst
build:
make 2release && \
+1 -1
View File
@@ -23,7 +23,7 @@ case "$1" in
mkdir -p /var/lib/scst/dif_tags
mkdir -p /var/lib/scst/pr
mkdir -p /var/lib/scst/vdev_mode_pages
depmod;;
depmod "%{KVER}";;
abort-upgrade|abort-remove|abort-deconfigure)
;;