snapper: fix "type=oneshot" error in snapper-boot.service

This commit is contained in:
LuoChen 2023-01-16 15:33:15 +08:00
parent 05cbcd8653
commit 7a6c0bb468

View file

@ -175,7 +175,7 @@ in
description = "Take snapper snapshot of root on boot";
inherit documentation;
serviceConfig.ExecStart = "${pkgs.snapper}/bin/snapper --config root create --cleanup-algorithm number --description boot";
serviceConfig.type = "oneshot";
serviceConfig.Type = "oneshot";
requires = [ "local-fs.target" ];
wantedBy = [ "multi-user.target" ];
unitConfig.ConditionPathExists = "/etc/snapper/configs/root";