bundles/zfs: use zfs-import-scan instead of zfs-import-cache

Last night, rx300 rebooted. After a reboot, the disks were detected
in another order (but still, all were detected!), so the cachefile did
no longer match, leading to breaking the import.

Running `zpool import` manually worked, because that will ignore the
cachefile. So, why do we depend on the cache file on boot up? The added
reliability of zfs-import-scan beats the speed of zfs-import-cache in
any way.
This commit is contained in:
Franzi 2022-03-12 08:54:33 +01:00
parent 42a66751e1
commit 72cf616114
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 39 additions and 7 deletions

View file

@ -0,0 +1,10 @@
[Unit]
ConditionPathExists=
[Service]
ExecStart=
% if node.os == 'arch':
ExecStart=/usr/bin/zpool import -aN -o cachefile=none
% else:
ExecStart=/usr/sbin/zpool import -aN -o cachefile=none
% endif