Upgrading of 20191010 installed on ZFS will lead to "device-mapper: reload ioctl on osprober-linux-sda6 failed: Device or resource busy" and then to auto-removal of all zfs packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1. Install Ubuntu 19.10 from 20191010 ISO
2. Run `sudo apt-get update` and `sudo apt-get upgrade`
3. Note the following lines in the APT output:
...
Warning: Couldn't find any valid initrd for dataset rpool/ROOT/
Found memtest86+ image: /BOOT/ubuntu_
Found memtest86+ image: /BOOT/ubuntu_
device-mapper: reload ioctl on osprober-linux-sda6 failed: Device or resource busy
Command failed.
done
...
device-mapper: reload ioctl on osprober-linux-sda6 failed: Device or resource busy
Command failed.
done
4. Run `sudo apt-get autoremove --purge`
$ sudo apt-get autoremove --purge
[sudo] password for zfs:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libnvpair1linux* libuutil1linux* libzfs2linux* libzpool2linux* zfs-initramfs* zfs-zed* zfsutils-linux*
0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
After this operation, 5 243 kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
Expected results:
* upgrading of packages run without errors
Actual results:
* system will not boot if user will proceed with package autoremoval
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: libzfs2linux 0.8.1-1ubuntu14
ProcVersionSign
Uname: Linux 5.3.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct 13 22:51:39 2019
InstallationDate: Installed on 2019-10-13 (0 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Beta amd64 (20191010)
SourcePackage: zfs-linux
UpgradeStatus: No upgrade log present (probably fresh install)
The osprober part is a duplicate of #1847632.