zfsonlinux / pkg-zfs

Native ZFS packaging for Debian and Ubuntu
https://launchpad.net/~zfs-native/+archive/daily
308 stars 55 forks source link

Removing old kernels makes dkms build spl+zfs before removing the modules and kernel #187

Closed dasjoe closed 8 years ago

dasjoe commented 8 years ago

Apparently dkms keeps modules built and installed for just a few (last 2?) kernel versions, older kernel's modules get removed even though the kernel package doesn't.

This causes dkms to build the spl and zfs modules when removing odler kernels, just to remove them once it built them.

Building ZFS on my N54L takes around 8 minutes, so I've been watching DKMS rebuild the modules for an hour or so by now.

dasjoe commented 8 years ago

Running /etc/kernel/postinst.d/dkms is the culprit, I'm not sure whether this issue is in pkg-zfs or upstream dkms.

Removing linux-image-extra-3.13.0-44-generic (3.13.0-44.73) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-44-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic
Generating grub configuration file ...
FransUrbo commented 8 years ago

I'm fairly certain this is a problem with dkms, which sucks. But it's what we got :(

dajhorn commented 8 years ago

Three factors here:

I will, therefore, close this ticket as a wontfix in this repository.