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

Harald Sitter null at kde.org
Mon Jun 14 14:48:47 BST 2021


Git commit e7ae585ea174c2d704669d2d32077349b4f96678 by Harald Sitter.
Committed on 14/06/2021 at 13:42.
Pushed by sitter into branch 'Neon/release'.

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/e7ae585ea174c2d704669d2d32077349b4f96678

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