openzfs / openzfs-docs

OpenZFS Documentation
https://openzfs.github.io/openzfs-docs/
135 stars 194 forks source link

Boot pool import service script causes zfs-import-cache.service to fail #496

Open sourcesmith opened 8 months ago

sourcesmith commented 8 months ago

@rlaager, I have the following issue with the Debian Bookworm Root on ZFS HOWTO:

I think moving /etc/zfs/zpool.cache aside in the import boot bool service script may stop the zfs-import-cache.service from working:

○ zfs-import-cache.service - Import ZFS pools by cache file
Loaded: loaded (/lib/systemd/system/zfs-import-cache.service; enabled; preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Wed 2024-02-28 10:23:14 GMT; 14min ago
└─ ConditionFileNotEmpty=/etc/zfs/zpool.cache was not met
Docs: man:zpool(8)

After boot the cache file is present with content and a manual import of a non-boot pool works. Commented out the mv commands results in the non-boot pool being imported.