[Pkg-zfsonlinux-devel] Bug#1110397: zfs-initramfs: zfs initramfs script tries to mount canmount=noauto filesystems

Wessel Dankers wsl-debbugs-zfs-initramfs at fruit.je
Mon Aug 4 15:24:53 BST 2025


Package: zfs-initramfs
Version: 2.3.2-2
Severity: normal

Dear Maintainer,

The current zfs initramfs script (/usr/share/initramfs-tools/scripts/zfs)
skips filesystems with canmount=off but not filesystems with
canmount=noauto.

This is especially annoying with encrypted filesystems on headless systems.

A simple extra check around line 342 should fix this. Or perhaps it
could check for canmount=on and skip mounting for all other values.

Steps to reproduce:

1) zfs create -o canmount=noauto pool/foo
2) reboot
3) error during boot that /root//foo can't be mounted because the directory
   does not exist.
4) mkdir /foo
5) reboot
6) notice how /foo is mounted even though it shouldn't be

Many thanks for the hard work!

-- System Information:
Debian Release: 13.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.38+deb13-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zfs-initramfs depends on:
ii  busybox                 1:1.37.0-6+b3
ii  initramfs-tools         0.148.3
ii  zfs-dkms [zfs-modules]  2.3.2-2
ii  zfsutils-linux          2.3.2-2

zfs-initramfs recommends no packages.

zfs-initramfs suggests no packages.

-- no debconf information



More information about the Pkg-zfsonlinux-devel mailing list