[neon/neon/settings/Neon/unstable] lib/systemd/system: prevent some wrong start conditions for the offline skip

Harald Sitter null at kde.org
Fri May 21 10:53:44 BST 2021


Git commit 5bdc40259c2c108349409633a4ee8680f44b8071 by Harald Sitter.
Committed on 21/05/2021 at 09:53.
Pushed by sitter into branch 'Neon/unstable'.

prevent some wrong start conditions for the offline skip

since it only runs in the update target we have very specific
expectations vis a vis the environment it is in

M  +4    -0    lib/systemd/system/neon-offline-skip.service

https://invent.kde.org/neon/neon/settings/commit/5bdc40259c2c108349409633a4ee8680f44b8071

diff --git a/lib/systemd/system/neon-offline-skip.service b/lib/systemd/system/neon-offline-skip.service
index 5de895a..71fb458 100644
--- a/lib/systemd/system/neon-offline-skip.service
+++ b/lib/systemd/system/neon-offline-skip.service
@@ -7,6 +7,10 @@ DefaultDependencies=no
 Requires=sysinit.target
 After=sysinit.target systemd-journald.socket plymouth-start.service
 Before=packagekit-offline-update.service system-update-pre.target shutdown.target system-update.target
+# Since this service is only part of the update target and run before anything that might clean up the marker
+# we can actively assert its presence to ensure the environment we are in looks correct.
+AssertPathExists=|/system-update
+AssertPathIsSymbolicLink=|/system-update
 
 [Service]
 # oneshot is only considered started when we exit


More information about the Neon-commits mailing list