Bug#847813: rmdir: failed to remove '/lib/modules/4.8.0-1-686-pae': Directory not empty

2016-12-11 Thread Andreas Beckmann
Control: reassign -1 src:linux

On 2016-12-12 00:25, 積丹尼 Dan Jacobson wrote:
> Package: nvidia-legacy-304xx-kernel-dkms

> # find /lib/modules/4.8.0-1-686-pae -print -delete
> /lib/modules/4.8.0-1-686-pae/source
> /lib/modules/4.8.0-1-686-pae/build
> /lib/modules/4.8.0-1-686-pae

These symlinks are shipped by the corresponding linux-headers-* package,
not created by the nvidia kernel module source packages.


Andreas



Bug#847813: rmdir: failed to remove '/lib/modules/4.8.0-1-686-pae': Directory not empty

2016-12-11 Thread 積丹尼 Dan Jacobson
Package: nvidia-legacy-304xx-kernel-dkms
Version: 304.132-1
Severity: minor
File: nvidia-legacy-304xx-kernel-dkms

Stuff is left behind upon purge.

Removing linux-image-4.8.0-1-686-pae (4.8.7-1) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: nvidia-legacy-304xx 304.132 (4.8.0-1-686-pae) (i686)

 Uninstall Beginning 
Module:  nvidia-legacy-304xx
Version: 304.132
Kernel:  4.8.0-1-686-pae (i686)
-

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-legacy-304xx.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.8.0-1-686-pae/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod

DKMS: uninstall completed.
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.7.0-1-686-pae
I: /initrd.img.old is now a symlink to boot/initrd.img-4.7.0-1-686-pae
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.8.0-1-686-pae
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.8.0-2-686-pae
Found initrd image: /boot/initrd.img-4.8.0-2-686-pae
Found linux image: /boot/vmlinuz-4.7.0-1-686-pae
Found initrd image: /boot/initrd.img-4.7.0-1-686-pae
done
(Reading database ... 179556 files and directories currently installed.)
Purging configuration files for linux-image-4.8.0-1-686-pae (4.8.7-1) ...
rmdir: failed to remove '/lib/modules/4.8.0-1-686-pae': Directory not empty

Had to do it by hand:

# find /lib/modules/4.8.0-1-686-pae -print -delete
/lib/modules/4.8.0-1-686-pae/source
/lib/modules/4.8.0-1-686-pae/build
/lib/modules/4.8.0-1-686-pae