From ef991f9b8bb4d69fe728d93d0caebc4c8b6d411a Mon Sep 17 00:00:00 2001 From: hyperfekt Date: Fri, 21 May 2021 17:49:19 +0200 Subject: [PATCH] nixos/filesystems: condition mount-pstore.service on unmounted /sys/fs/pstore For unknown reasons, switching to a system that first introduces this service has it fail with /sys/fs/pstore already having been mounted. --- nixos/modules/tasks/filesystems.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index 24f71d29427..065d6cc95d1 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -321,6 +321,7 @@ in RemainAfterExit = true; }; unitConfig = { + ConditionPathIsMountPoint = "!/sys/fs/pstore"; ConditionVirtualization = "!container"; DefaultDependencies = false; # needed to prevent a cycle };