From 2c4eb0321491c6a8b6409ae132adb742e0562fdb Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 4 Jan 2022 15:24:22 +0100 Subject: [PATCH] bundles/backup-server: auto-import pool after decrypting --- bundles/backup-server/metadata.py | 6 ++++++ 1 file changed, 6 insertions(+) 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', }, }, }