** Description changed: - root@tmp:/home/pgray# zfs list -t snapshot -o name -S creation + ** SRU ** + [Impact] + For yet unknown reasons, bpool is sometimes not imported. This causes the upgrade script to fail because then /boot is not a mount point. + The fix just ignores the return status of findmnt to prevent the postinst script to fail in this situation + + [Test Case] + 1. Install zsys 0.4.5 + 2. Unmount /boot/grub/, /boot/efi and /boot + 3. Install the update of zsys + + [Regression potential] + Low, since now the error is now ignored. + + + ** Original Description ** + root@tmp:/home/pgray# zfs list -t snapshot -o name -S creation no datasets available root@tmp:/home/pgray# sudo apt-get install zsys Reading package lists... Done - Building dependency tree + Building dependency tree Reading state information... Done zsys is already the newest version (0.4.6). 0 upgraded, 0 newly installed, 0 to remove and 10 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 Requesting to save current system state Successfully saved as "autozsys_90843v" Setting up zsys (0.4.6) ... dpkg: error processing package zsys (--configure): - installed zsys package post-installation script subprocess returned error exit status 1 + installed zsys package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: - zsys + zsys ZSys is adding automatic system snapshot to GRUB menu - ERROR Service took too long to respond. Disconnecting client. + ERROR Service took too long to respond. Disconnecting client. E: Sub-process /usr/bin/dpkg returned an error code (1) root@tmp:/home/pgray# zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT rpool 107G 9.27G 97.7G - - 10% 8% 1.00x ONLINE - This was after a previous upgrade failed. Even after removing all snapshots for that pool, it fails. root@tmp:/home/pgray# lsb_release -rd Description: Ubuntu 20.04 LTS Release: 20.04 root@tmp:/home/pgray# apt-cache policy zsys zsys: - Installed: 0.4.6 - Candidate: 0.4.6 - Version table: - *** 0.4.6 500 - 500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages - 100 /var/lib/dpkg/status - 0.4.5 500 - 500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages - --- + Installed: 0.4.6 + Candidate: 0.4.6 + Version table: + *** 0.4.6 500 + 500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages + 100 /var/lib/dpkg/status + 0.4.5 500 + 500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages + --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu27.3 Architecture: amd64 CasperMD5CheckResult: skip DistroRelease: Ubuntu 20.04 InstallationDate: Installed on 2020-06-09 (27 days ago) InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair Package: zsys 0.4.5 PackageArchitecture: amd64 ProcEnviron: - TERM=screen-256color - PATH=(custom, no user) - XDG_RUNTIME_DIR=<set> - LANG=en_US.UTF-8 - SHELL=/bin/bash + TERM=screen-256color + PATH=(custom, no user) + XDG_RUNTIME_DIR=<set> + LANG=en_US.UTF-8 + SHELL=/bin/bash ProcKernelCmdLine: BOOT_IMAGE=/BOOT/ubuntu_bgiwia@/vmlinuz-5.4.0-37-generic root=ZFS=rpool/ROOT/ubuntu_bgiwia ro quiet splash ProcVersionSignature: Ubuntu 5.4.0-37.41-generic 5.4.41 RelatedPackageVersions: - zfs-initramfs 0.8.3-1ubuntu12.1 - zfsutils-linux 0.8.3-1ubuntu12.1 + zfs-initramfs 0.8.3-1ubuntu12.1 + zfsutils-linux 0.8.3-1ubuntu12.1 Tags: focal Uname: Linux 5.4.0-37-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip docker kvm libvirt lpadmin lxd plugdev sambashare sudo ZFSImportedPools: - NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT - rpool 107G 9.66G 97.3G - - 10% 9% 1.00x ONLINE - - slow 29.1T 606G 28.5T - - 0% 2% 1.00x ONLINE - + NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT + rpool 107G 9.66G 97.3G - - 10% 9% 1.00x ONLINE - + slow 29.1T 606G 28.5T - - 0% 2% 1.00x ONLINE - ZFSListcache-bpool: - bpool /boot off on on off on off on off - none - bpool/BOOT none off on on off on off on off - none - bpool/BOOT/ubuntu_bgiwia /boot on on on off on off on off - none + bpool /boot off on on off on off on off - none + bpool/BOOT none off on on off on off on off - none + bpool/BOOT/ubuntu_bgiwia /boot on on on off on off on off - none _MarkForUpload: True
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1886214 Title: zsys package post-installation failed when boot pool is not imported To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zsys/+bug/1886214/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
