From 3eaffe1ac687727ff48399a228110e5e8cd114af Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 12 Jan 2025 11:17:02 +0100 Subject: [PATCH] pass move-mount-beneath: add more debug info --- nixosModules/clanCore/vars/secret/password-store.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixosModules/clanCore/vars/secret/password-store.nix b/nixosModules/clanCore/vars/secret/password-store.nix index 4f541d661..d2cfbddec 100644 --- a/nixosModules/clanCore/vars/secret/password-store.nix +++ b/nixosModules/clanCore/vars/secret/password-store.nix @@ -15,6 +15,7 @@ let ]; text = '' set -efu -o pipefail + set -x src=$1 target=$2 @@ -28,7 +29,7 @@ let mount --bind --make-private "$target".tmp "$target".tmp mount --bind --make-private "$target" "$target" tar -xf "$src" -C "$target".tmp - move-mount --beneath --move "$target".tmp "$target" 2>/dev/null + move-mount --beneath --move "$target".tmp "$target" umount -R "$target".tmp rmdir "$target".tmp umount --lazy "$target"