postinst script might report an error if zfs-fuse is not installed

Bug #1910133 reported by Lucas Kanashiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
docker.io (Ubuntu)
Fix Released
Undecided
Unassigned
Groovy
Fix Released
Undecided
Unassigned

Bug Description

The postinst script uses the 'zfs mount' command to check mountpoints, however, the zfs-fuse package is a suggested runtime dependency of docker.io which might not be available and in this case the following error will be reported during the package configuration step:

/var/lib/dpkg/info/docker.io.postinst: 31: zfs: not found

This happens because the postinst script checks the zfs kernel module information but it does not check if the 'zfs' binary is available, and it is not a mandatory runtime dependency.

Nevertheless, this is not a critical issue, the error is reported but the configuration step works well.

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package docker.io - 19.03.13-0ubuntu6

---------------
docker.io (19.03.13-0ubuntu6) hirsute; urgency=medium

  * d/docker.io.postinst: check if zfs exists before calling it (LP: #1910133).
    The zfs executable is provided by zfs-fuse | zfsutils and they are
    runtime Suggested dependencies, which means they might not be available
    during configuration time.

 -- Lucas Kanashiro <email address hidden> Mon, 04 Jan 2021 17:25:39 -0300

Changed in docker.io (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package docker.io - 20.10.2-0ubuntu1~20.10.1

---------------
docker.io (20.10.2-0ubuntu1~20.10.1) groovy; urgency=medium

  * Backport version 20.10.2-0ubuntu1 from Hirsute (LP: #1919322).

 -- Lucas Kanashiro <email address hidden> Tue, 16 Mar 2021 16:16:09 -0300

Changed in docker.io (Ubuntu Groovy):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.