]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Use SuccessActionExitStatus= in mkosi-check-and-shutdown.service 28669/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 4 Aug 2023 14:27:11 +0000 (16:27 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 4 Aug 2023 14:49:07 +0000 (16:49 +0200)
mkosi.presets/20-final/mkosi.extra/usr/lib/systemd/mkosi-check-and-shutdown.sh
mkosi.presets/20-final/mkosi.extra/usr/lib/systemd/system/mkosi-check-and-shutdown.service

index 30fb30fde78123ef02c6dd5495d0d9f2b6a05979..9bb246263e4b41b6e4bde7bb912c305f06479589 100755 (executable)
@@ -17,7 +17,3 @@ fi
 
 # Exit with non-zero EC if the /failed-services file is not empty (we have -e set)
 [[ ! -s /failed-services ]]
-
-# On success, exit with 123 so that we can check that we receive the actual exit code from the script on the
-# host.
-exit 123
index 6e35b6f2885e4bd1d8dc008ccc38ef0da2b457cf..7942cbfa775a06d258b5d031a731849ee4d51c3c 100644 (file)
@@ -6,6 +6,9 @@ Requires=multi-user.target
 Wants=systemd-resolved.service systemd-networkd.service network-online.target
 SuccessAction=exit
 FailureAction=exit
+# On success, exit with 123 so that we can check that we receive the actual exit code from the script on the
+# host.
+SuccessActionExitStatus=123
 
 [Service]
 Type=oneshot