zsys package post-installation failed when boot pool is not imported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zsys (Ubuntu) |
Fix Released
|
High
|
Jean-Baptiste Lallement | ||
Focal |
Fix Released
|
High
|
Jean-Baptiste Lallement |
Bug Description
** 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:
no datasets available
root@tmp:
Reading package lists... Done
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
Errors were encountered while processing:
zsys
ZSys is adding automatic system snapshot to GRUB menu
ERROR Service took too long to respond. Disconnecting client.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@tmp:
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:
Description: Ubuntu 20.04 LTS
Release: 20.04
root@tmp:
zsys:
Installed: 0.4.6
Candidate: 0.4.6
Version table:
*** 0.4.6 500
500 http://
100 /var/lib/
0.4.5 500
500 http://
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckR
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-06-09 (27 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
NonfreeKernelMo
Package: zsys 0.4.5
PackageArchitec
ProcEnviron:
TERM=screen-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
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 -
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/
_MarkForUpload: True
Changed in zsys (Ubuntu): | |
status: | Incomplete → Confirmed |
summary: |
- apt-get upgrade fails on zsys package when boot pool is not imported + zsys package post-installation failed when boot pool is not imported |
Changed in zsys (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in zsys (Ubuntu): | |
assignee: | nobody → Jean-Baptiste Lallement (jibel) |
Changed in zsys (Ubuntu Focal): | |
assignee: | nobody → Jean-Baptiste Lallement (jibel) |
milestone: | none → focal-updates |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.