]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: stop using rm in system-update-cleanup.service
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 10 Mar 2026 21:59:37 +0000 (22:59 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 18 Mar 2026 13:58:43 +0000 (14:58 +0100)
If we are running on a system without coreutils, rm might not be
available. Let's use our own binary that should be available.

units/system-update-cleanup.service

index a54e74567e1fe0b06335c54c2f7c37135dcb99f7..e9ff88c73c87cba46f0721c2fb9acaa39e1dcf38 100644 (file)
@@ -34,4 +34,4 @@ ConditionPathIsSymbolicLink=|/etc/system-update
 
 [Service]
 Type=oneshot
-ExecStart=rm -fv /system-update /etc/system-update
+ExecStart=systemd-tmpfiles --inline --remove 'r /system-update' 'r /etc/system-update'