diff --git a/bundles/backup-server/metadata.py b/bundles/backup-server/metadata.py index 51e052d..dfa0899 100644 --- a/bundles/backup-server/metadata.py +++ b/bundles/backup-server/metadata.py @@ -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', }, }, }