zfsonlinux / pkg-zfs

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

update-initramfs: Cannot update. Override with -t option. #210

Closed poiuty closed 8 years ago

poiuty commented 8 years ago

Debian 8 => after apt-get upgrade

zfs.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/

depmod....

DKMS: install completed.
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.31.1-2+deb8u4) ...
Processing triggers for initramfs-tools (0.120+deb8u1) ...
update-initramfs: /boot/initrd.img-3.16.0-4-amd64 has been altered.
update-initramfs: Cannot update. Override with -t option.
Errors were encountered while processing:
 zfsonlinux
E: Sub-process /usr/bin/dpkg returned an error code (1)
poiuty commented 8 years ago
# rm /boot/initrd.img-3.16.0-4-amd64
# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up zfsonlinux (7) ...
/var/lib/dpkg/info/zfsonlinux.postinst: line 24: [: argument expected
Unknown Debian GNU/Linux version!
Can not create /etc/apt/sources.list.d/zfsonlinux.list.
See /usr/share/doc/zfsonlinux/zfsonlinux.list.
dpkg: error processing package zfsonlinux (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 zfsonlinux
E: Sub-process /usr/bin/dpkg returned an error code (1)
# update-initramfs -u -k all -t
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64

# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up zfsonlinux (7) ...
/var/lib/dpkg/info/zfsonlinux.postinst: line 24: [: argument expected
Unknown Debian GNU/Linux version!
Can not create /etc/apt/sources.list.d/zfsonlinux.list.
See /usr/share/doc/zfsonlinux/zfsonlinux.list.
dpkg: error processing package zfsonlinux (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 zfsonlinux
E: Sub-process /usr/bin/dpkg returned an error code (1)
FransUrbo commented 8 years ago

Fixed in v8.