During system start, the /etc/init/mountall.conf on Ubuntu is unable to
generate the /etc/mtab file from the /proc/mounts file if a ZFS filesystem is
already mounted.
However, mountall 2.18 behaves properly if /etc/mtab is a symlink to
/proc/mounts. This version was first published in Ubuntu Maverick.
Additionally, the mountall package is peculiar to Ubuntu, so the mountall
dependency breaks Debian compatibility. A better solution would be to update
mountall to recognize ZFS mounts, or to find a proc syntax that mountall
already recognizes.
Package: zfs-initramfs
Architecture: linux-any
-Depends: ${misc:Depends}, gawk, zfsutils
+Depends: ${misc:Depends}, mountall (>= 2.18), gawk, zfsutils
Description: Native ZFS root filesystem capabilities for Linux
Package: zfsutils
--- /dev/null
+#!/bin/sh
+
+# @FIXME: During system start, the /etc/init/mountall.conf on Ubuntu is unable
+# to generate the /etc/mtab file from the /proc/mounts file if a ZFS filesystem
+# is already mounted.
+
+# This depends on mountall 2.18, which recognizes the link.
+ln -sf /proc/mounts /etc/mtab