dkms: force dkms install

Whenever the installing step is failing, for some reasons,
all subsequent installing step will run into failure,
except when --force is passed.
This commit is contained in:
Đoàn Trần Công Danh 2023-05-30 13:51:06 +07:00 committed by Đoàn Trần Công Danh
parent 01a0b74cb2
commit 9373a5ef9a
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ while [ $# -gt 1 ]; do
if [ $(echo "$status"|grep -c ": built") -eq 1 ] &&
[ $(echo "$status"|grep -c ": installed") -eq 0 ]; then
echo -n "Installing DKMS module: ${module}-${modulever}... "
/usr/bin/dkms install -q -m ${module} -v ${modulever} -k ${VERSION} -a ${ARCH}
/usr/bin/dkms install --force -q -m ${module} -v ${modulever} -k ${VERSION} -a ${ARCH}
rval=$?
# If the module failed installation, go to the next module.
if [ $rval -eq 0 ]; then

View file

@ -1,7 +1,7 @@
# Template file for 'dkms'
pkgname=dkms
version=3.0.10
revision=1
revision=2
conf_files="/etc/dkms/framework.conf"
depends="bash kmod gcc make coreutils xbps-triggers>=0.123_1"
short_desc="Dynamic Kernel Module Support"