[zfs-discuss] Failed to Import Pool via Cache File

Gena Makhomed gmm at csdoc.com
Mon Dec 18 14:21:48 EST 2017


On 18.12.2017 21:05, Gregor Kopka (@zfs-discuss) via zfs-discuss wrote:

> Ceterum censeo /etc/zpool.cache should be abolished.

zfs-import-scan.service has security vulnerabilities

https://github.com/zfsonlinux/zfs/issues/4325
zfs-import-scan.service should be removed

/usr/lib/systemd/system/zfs-import-scan.service

[Unit]
Description=Import ZFS pools by device scanning
DefaultDependencies=no
Requires=systemd-udev-settle.service
After=systemd-udev-settle.service
After=cryptsetup.target
Before=dracut-mount.service
Before=zfs-import.target
ConditionPathExists=!/etc/zfs/zpool.cache

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/sbin/modprobe zfs
ExecStart=/sbin/zpool import -aN -o cachefile=none

[Install]
WantedBy=zfs-import.target

-- 
Best regards,
  Gena


More information about the zfs-discuss mailing list