mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
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:
2
Makefile
2
Makefile
@@ -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 \
|
||||
|
||||
3
debian/rules
vendored
3
debian/rules
vendored
@@ -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 && \
|
||||
|
||||
@@ -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)
|
||||
;;
|
||||
Reference in New Issue
Block a user