summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-01-23 17:35:53 +0100
committerlassulus <lassulus@lassul.us>2021-01-23 17:35:53 +0100
commit1fb7abde922545b3b1ea3887bd5a3f2a57bbb0be (patch)
tree9a77955f9c51f065d21582f262074f8a812cff77 /lass
parent859a6d1e732bfc40e65f5ed7b33d4014d77740a8 (diff)
l sync-containers: fix ecryptfs startup bug
Diffstat (limited to 'lass')
-rw-r--r--lass/3modules/sync-containers.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/lass/3modules/sync-containers.nix b/lass/3modules/sync-containers.nix
index ca81458a9..25ba2589b 100644
--- a/lass/3modules/sync-containers.nix
+++ b/lass/3modules/sync-containers.nix
@@ -10,6 +10,8 @@ with import <stockholm/lib>;
plain = ''
'';
ecryptfs = ''
+ # we start and exit ecryptfs-manager again to circumvent a bug where mounting the ecryptfs fails
+ echo 4 | ${pkgs.ecryptfs}/bin/ecryptfs-manager
if ! mount | grep -q '${cfg.dataLocation}/${cname}/ecryptfs on /var/lib/containers/${cname}/var/state type ecryptfs'; then
if [ -e ${cfg.dataLocation}/${cname}/ecryptfs/.cfg.json ]; then
${pkgs.ecrypt}/bin/ecrypt mount ${cfg.dataLocation}/${cname}/ecryptfs /var/lib/containers/${cname}/var/state