bundles/backup-server: auto-import pool after decrypting
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2022-01-04 15:24:22 +01:00
parent 67b8697808
commit 2c4eb03214
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -74,6 +74,12 @@ def zfs_pool(metadata):
],
},
'needs': unlock_actions,
# That's a bit hacky. We do it this way to auto-import
# the pool after decrypting the devices. Otherwise
# the pool wouldn't exist, which leads to bundlewrap
# trying to re-create the pool.
# Also, -N to not auto-mount anything.
'unless': 'zpool import -N backups',
},
},
}