From 49216791403c32756b44541bcea1c3d6956cfe97 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Fri, 24 Oct 2025 14:49:32 +0100 Subject: [PATCH] Make impermanence reset work on unencrypted hosts. --- common/impermanence.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/impermanence.nix b/common/impermanence.nix index ab8520d..be8fa4d 100644 --- a/common/impermanence.nix +++ b/common/impermanence.nix @@ -64,7 +64,7 @@ in # Note `lib.mkBefore` is used instead of `lib.mkAfter` here. boot.initrd.postDeviceCommands = pkgs.lib.mkBefore '' mkdir /mnt - mount /dev/mapper/luksroot /mnt + mount ${config.fileSystems."/".device} /mnt if [[ -e /mnt/root ]]; then mkdir -p /mnt/old_roots timestamp=$(date --date="@$(stat -c %Y /mnt/root)" "+%Y-%m-%-d_%H:%M:%S")