diff --git a/files/systemd/system/flag-update-downloaded.service b/files/systemd/system/flag-update-downloaded.service new file mode 100644 index 0000000..dde8c29 --- /dev/null +++ b/files/systemd/system/flag-update-downloaded.service @@ -0,0 +1,10 @@ +[Unit] +Description=Create a file to flag that an update has been downloaded +After=bootc-status-updated.target + +[Service] +Type=exec +ExecStart=/usr/bin/touch /tmp/hydro-os-updated + +[Install] +WantedBy=bootc-status-updated.target \ No newline at end of file diff --git a/files/systemd/user/bootc-status-updated.path b/files/systemd/user/bootc-status-updated.path index 0b85fbf..f38a4d0 100644 --- a/files/systemd/user/bootc-status-updated.path +++ b/files/systemd/user/bootc-status-updated.path @@ -1,10 +1,9 @@ [Unit] Description=Monitor bootc for status changes Documentation=man:bootc-status-updated.path(5) -ConditionPathExists=/run/ostree-booted [Path] -PathChanged=/ostree/bootc +PathExists=/tmp/hydro-os-updated Unit=bootc-status-updated.target [Install] diff --git a/files/systemd/user/bootc-status-updated.target b/files/systemd/user/bootc-status-updated.target index 9fabc15..c74140d 100644 --- a/files/systemd/user/bootc-status-updated.target +++ b/files/systemd/user/bootc-status-updated.target @@ -1,5 +1,4 @@ [Unit] Description=Target for bootc status changes Documentation=man:bootc-status-updated.target(5) -StopWhenUnneeded=true -ConditionPathExists=/run/ostree-booted \ No newline at end of file +StopWhenUnneeded=true \ No newline at end of file