From bfe677ff3d7491e025031872ab41d2a1aecdabd4 Mon Sep 17 00:00:00 2001 From: Brian C. Lane Date: Mar 31 2022 18:48:49 +0000 Subject: Add ConditionPathExists check to systemd units This adds checks for /.liveimg-configured and /.liveimg-late-configured as a condition of starting the unit. --- diff --git a/systemd/livesys-late.service b/systemd/livesys-late.service index 5708aa8..c177aa2 100644 --- a/systemd/livesys-late.service +++ b/systemd/livesys-late.service @@ -3,6 +3,7 @@ Description=Late Initialization for live environments After=livesys.service Before=display-manager.service chronyd.service ConditionKernelCommandLine=rd.live.image +ConditionPathExists=!/.liveimg-late-configured [Service] Type=oneshot diff --git a/systemd/livesys.service b/systemd/livesys.service index 86829c8..fac6b04 100644 --- a/systemd/livesys.service +++ b/systemd/livesys.service @@ -2,6 +2,7 @@ Description=Initialization for live environments Before=display-manager.service chronyd.service ConditionKernelCommandLine=rd.live.image +ConditionPathExists=!/.liveimg-configured [Service] Type=oneshot