package zfsutils-linux 0.8.3-1ubuntu12.4 failed to install/upgrade: installed zfsutils-linux package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
When I try to update zfsutils-linux, the upgrade process tries to mount all zfs file systems but since my root / is on zfs it fails with:
nov 22 08:21:28 Home systemd[1]: Starting Mount ZFS filesystems...
nov 22 08:21:28 Home zfs[286979]: cannot mount '/': directory is not empty
nov 22 08:21:28 Home systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
nov 22 08:21:28 Home systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
nov 22 08:21:28 Home systemd[1]: Failed to start Mount ZFS filesystems.
As a consequence, the upgrade process fails.
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: zfsutils-linux 0.8.3-1ubuntu12.4
ProcVersionSign
Uname: Linux 5.4.0-40-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
AptOrdering:
linux-
linux-
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Sun Nov 22 06:41:54 2020
ErrorMessage: installed zfsutils-linux package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2020-07-08 (136 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.2ubuntu0.1
SourcePackage: zfs-linux
Title: package zfsutils-linux 0.8.3-1ubuntu12.4 failed to install/upgrade: installed zfsutils-linux package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
tags: | removed: need-duplicate-check |
I wonder if this has to do with the fact that the defaults in /etc/default/zfs have been modified:
# Wait for this many seconds in the initrd pre_mountroot? PRE_MOUNTROOT_ SLEEP=' 0'
# This delays startup and should be '0' on most systems.
# Only applicable for Debian GNU/Linux {dkms,initramfs}.
ZFS_INITRD_
# Wait for this many seconds in the initrd mountroot? POST_MODPROBE_ SLEEP=' 0'
# This delays startup and should be '0' on most systems. This might help on
# systems which have their ZFS root on a USB disk that takes just a little
# longer to be available
# Only applicable for Debian GNU/Linux {dkms,initramfs}.
ZFS_INITRD_
# List of additional datasets to mount after the root dataset is mounted? ROOT/rootfs' , this would make sense. ADDITIONAL_ DATASETS= "rpool/ ROOT/usr rpool/ROOT/var" ADDITIONAL_ DATASETS= "x data x/tmp data/tmp x/livebackup"
#
# The init script will use the mountpoint specified in the 'mountpoint'
# property value in the dataset to determine where it should be mounted.
#
# This is a space separated list, and will be mounted in the order specified,
# so if one filesystem depends on a previous mountpoint, make sure to put
# them in the right order.
#
# It is not necessary to add filesystems below the root fs here. It is
# taken care of by the initrd script automatically. These are only for
# additional filesystems needed. Such as /opt, /usr/local which is not
# located under the root fs.
# Example: If root FS is 'rpool/
#ZFS_INITRD_
ZFS_INITRD_