From a3069f57b0d30e9c934aeeacb7ad4e0de243b211 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Tue, 2 Apr 2019 18:16:47 -0400 Subject: [PATCH] trivial: snap: set return code 2 on `fwupd-activate.service` as success Otherwise the common case (nothing to do) will return 2 and show the systemd unit as failed every time. --- contrib/snap/activate-shutdown/fwupd-activate.service | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/snap/activate-shutdown/fwupd-activate.service b/contrib/snap/activate-shutdown/fwupd-activate.service index 24b6290d5..c008a717a 100644 --- a/contrib/snap/activate-shutdown/fwupd-activate.service +++ b/contrib/snap/activate-shutdown/fwupd-activate.service @@ -6,6 +6,7 @@ RequiresMountsFor=/snap/fwupd/current Type=oneshot RemainAfterExit=true ExecStop=/snap/bin/fwupd.fwupdtool activate +SuccessExitStatus=0 2 [Install] WantedBy=multi-user.target