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.
master
hyperfekt 2021-05-21 17:49:19 +02:00
parent 673aea9f84
commit ef991f9b8b
1 changed files with 1 additions and 0 deletions

View File

@ -321,6 +321,7 @@ in
RemainAfterExit = true;
};
unitConfig = {
ConditionPathIsMountPoint = "!/sys/fs/pstore";
ConditionVirtualization = "!container";
DefaultDependencies = false; # needed to prevent a cycle
};