can not disable zfs snapshot/pool/filesystem scanning in grub

Bug #1968110 reported by pseudoterminal X0
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zfs-linux (Ubuntu)
New
Undecided
Unassigned

Bug Description

I've currently got an issue where encrypted backups on an external pool whose key are unavailable are being scanned during `grub-mkconfig`, causing it to error out during `zfs_mount_at()` because the key is unavailable.

I've traced it down to the /etc/grub.d/10_linux_zfs support file which scans pools and filesystems indiscriminately, no options to configure in /etc/default/grub or /etc/default/zfs.

Although, /etc/default/zfs has the `ZPOOL_IMPORT_ALL_VISIBLE='no'` that I have set explicitly, and it is ignored during grub-mkconfig only. Even if my zpool isn't imported, it's scanned (I hear the HDD spin up) and erroneously included.

Package: grub-common
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 13836
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Multi-Arch: foreign
Source: grub2
Version: 2.06-2ubuntu6

Revision history for this message
pseudoterminal X0 (ptx0) wrote :

this is particularly troublesome, can we get some kind of update?

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.