Bug#996104: dkms: Fail to remove modules

2021-10-23 Thread Vincent Lefevre
Control: tags -1 patch fixed-upstream

On 2021-10-22 18:35:55 +0700, Damir Islamov wrote:
> Tags 996104 patch fixed-upstream

Really tagging...

>  https://github.com/dell/dkms/commit/
> 64a882a32fdf126ef20e6b6403b5cb158dad21f4[1]

Without the line break:

https://github.com/dell/dkms/commit/64a882a32fdf126ef20e6b6403b5cb158dad21f4

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#996104: dkms: Fail to remove modules

2021-10-22 Thread Damir Islamov
Tags 996104 patch fixed-upstream

 https://github.com/dell/dkms/commit/
64a882a32fdf126ef20e6b6403b5cb158dad21f4[1]


Sincerely yours,
*Damir Islamov*



[1] https://github.com/dell/dkms/commit/
64a882a32fdf126ef20e6b6403b5cb158dad21f4


signature.asc
Description: This is a digitally signed message part.


Bug#996104: dkms: Fail to remove modules

2021-10-19 Thread Damir R. Islamov
Package: dkms
Version: 2.8.7-2
Followup-For: Bug #996104

Dear Maintainer,

The issue is caused by mistakes in lines 16-17 if /etc/kernel/prerm.d/dkms 
script
(quotes are misplaced).
The patch:
===
--- /etc/kernel/prerm.d/dkms.orig
+++ /etc/kernel/prerm.d/dkms.fixed
@@ -13,8 +13,8 @@
 
 if [ -x /usr/sbin/dkms ]; then
 while read line; do
-   name=`echo "$line" | awk '{print $1}' | sed 's/,$//'` | cut -d'/' -f1
-   vers=`echo "$line" | awk '{print $1}' | sed 's/,$//'` | cut -d'/' -f2
+   name=`echo "$line" | awk '{print $1}' | sed 's/,$//' | cut -d'/' -f1`
+   vers=`echo "$line" | awk '{print $1}' | sed 's/,$//' | cut -d'/' -f2`
arch=`echo "$line" | awk '{print $3}' | sed 's/:$//'`
echo "dkms: removing: $name $vers ($inst_kern) ($arch)" >&2
dkms remove -m $name -v $vers -k $inst_kern -a $arch
===


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dkms depends on:
ii  build-essential12.9
ii  clang-11 [c-compiler]  1:11.1.0-4
ii  coreutils  8.32-4+b1
ii  dctrl-tools2.24-3+b1
ii  dpkg-dev   1.20.9
ii  gcc [c-compiler]   4:11.2.0-2
ii  gcc-10 [c-compiler]10.3.0-11
ii  gcc-11 [c-compiler]11.2.0-9
ii  kmod   29-1
ii  lsb-release11.1.0
ii  make   4.3-4.1
ii  patch  2.7.6-7

Versions of packages dkms recommends:
ii  fakeroot 1.26-1
ii  linux-headers-amd64 [linux-headers-generic]  5.14.12-1
ii  sudo 1.9.5p2-3

Versions of packages dkms suggests:
ii  e2fsprogs  1.46.4-1
ii  menu   2.1.48

-- Configuration Files:
/etc/kernel/prerm.d/dkms changed:
inst_kern=$1
remove_initrd_backup() {
for initrd in "initrd-$1.img" "initramfs-$1.img" "initrd.img-$1" 
"initrd-$1"; do
rm -fv /boot/"${initrd}".old-dkms >&2
done
}
if [ -x /usr/sbin/dkms ]; then
while read line; do
   name=`echo "$line" | awk '{print $1}' | sed 's/,$//' | cut -d'/' -f1`
   vers=`echo "$line" | awk '{print $1}' | sed 's/,$//' | cut -d'/' -f2`
   arch=`echo "$line" | awk '{print $3}' | sed 's/:$//'`
   echo "dkms: removing: $name $vers ($inst_kern) ($arch)" >&2
   dkms remove -m $name -v $vers -k $inst_kern -a $arch
done < <(dkms status -k $inst_kern 2>/dev/null | grep ": installed")
fi
remove_initrd_backup "$inst_kern"
rmdir --ignore-fail-on-non-empty \
"/lib/modules/$inst_kern/updates/dkms" \
"/lib/modules/$inst_kern/updates" 2>/dev/null
exit 0

/etc/modprobe.d/dkms.conf changed:


-- no debconf information



Bug#996104: dkms: Fail to remove modules

2021-10-11 Thread S R Wright
I encountered this error as well,  however manual removal via 'dkms 
remove' is still operational.




Bug#996104: dkms: Fail to remove modules

2021-10-11 Thread Christian Marillat
Package: dkms
Version: 2.8.7-2
Severity: important

Dear Maintainer,

I removed two kernels and something goes wrong.

Suppression de linux-image-5.14.8-1 (5.14.8-1-10.00.Custom) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 5.14.8-1 /boot/vmlinuz-5.14.8-1
dkms: removing:   (5.14.8-1) (x86_64)
Error! Arguments  and  are not specified.
Usage: remove / or
   remove -m / or
   remove -m  -v 
dkms: removing:   (5.14.8-1) (x86_64)
Error! Arguments  and  are not specified.
Usage: remove / or
   remove -m / or
   remove -m  -v 
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.14.8-1 
/boot/vmlinuz-5.14.8-1
update-initramfs: Deleting /boot/initrd.img-5.14.8-1
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 5.14.8-1 
/boot/vmlinuz-5.14.8-1
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.14.11
Found initrd image: /boot/initrd.img-5.14.11
Found linux image: /boot/vmlinuz-5.14.10
Found initrd image: /boot/initrd.img-5.14.10
Found linux image: /boot/vmlinuz-5.14.9
Found initrd image: /boot/initrd.img-5.14.9
done
Suppression de linux-image-5.14.9 (5.14.9-10.00.Custom) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 5.14.9 /boot/vmlinuz-5.14.9
dkms: removing:   (5.14.9) (x86_64)
Error! Arguments  and  are not specified.
Usage: remove / or
   remove -m / or
   remove -m  -v 
dkms: removing:   (5.14.9) (x86_64)
Error! Arguments  and  are not specified.
Usage: remove / or
   remove -m / or
   remove -m  -v 
dkms: removing:   (5.14.9) (x86_64)
Error! Arguments  and  are not specified.
Usage: remove / or
   remove -m / or
   remove -m  -v 
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.14.9 
/boot/vmlinuz-5.14.9
update-initramfs: Deleting /boot/initrd.img-5.14.9
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 5.14.9 
/boot/vmlinuz-5.14.9
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.14.11
Found initrd image: /boot/initrd.img-5.14.11
Found linux image: /boot/vmlinuz-5.14.10
Found initrd image: /boot/initrd.img-5.14.10
done







Christian

-- System Information:
Debian Release: bookworm/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.11 (SMP w/24 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dkms depends on:
ii  build-essential12.9
ii  clang-11 [c-compiler]  1:11.1.0-4
ii  coreutils  8.32-4+b1
ii  dctrl-tools2.24-3+b1
ii  dpkg-dev   1.20.9
ii  gcc [c-compiler]   4:11.2.0-2
ii  gcc-10 [c-compiler]10.3.0-11
ii  gcc-11 [c-compiler]11.2.0-9
ii  kmod   29-1
ii  lsb-release11.1.0
ii  make   4.3-4.1
ii  patch  2.7.6-7

Versions of packages dkms recommends:
ii  fakeroot  1.26-1
pn  linux-headers-686-pae | linux-headers-amd64 | linux-headers-gene  
ii  sudo  1.9.5p2-3

Versions of packages dkms suggests:
ii  e2fsprogs  1.46.4-1
ii  menu   2.1.48

-- no debconf information