Merge pull request #211044 from luochen1990/bugfix-snapper-boot
snapper: fix "type=oneshot" error in snapper-boot.service
This commit is contained in:
commit
c6debce54c
|
@ -175,7 +175,7 @@ in
|
||||||
description = "Take snapper snapshot of root on boot";
|
description = "Take snapper snapshot of root on boot";
|
||||||
inherit documentation;
|
inherit documentation;
|
||||||
serviceConfig.ExecStart = "${pkgs.snapper}/bin/snapper --config root create --cleanup-algorithm number --description boot";
|
serviceConfig.ExecStart = "${pkgs.snapper}/bin/snapper --config root create --cleanup-algorithm number --description boot";
|
||||||
serviceConfig.type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
requires = [ "local-fs.target" ];
|
requires = [ "local-fs.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
unitConfig.ConditionPathExists = "/etc/snapper/configs/root";
|
unitConfig.ConditionPathExists = "/etc/snapper/configs/root";
|
||||||
|
|
Loading…
Reference in a new issue