Attempting to use system bootc-status-updated to flag the user side.
This commit is contained in:
10
files/systemd/system/flag-update-downloaded.service
Normal file
10
files/systemd/system/flag-update-downloaded.service
Normal file
@@ -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
|
@@ -1,10 +1,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Monitor bootc for status changes
|
Description=Monitor bootc for status changes
|
||||||
Documentation=man:bootc-status-updated.path(5)
|
Documentation=man:bootc-status-updated.path(5)
|
||||||
ConditionPathExists=/run/ostree-booted
|
|
||||||
|
|
||||||
[Path]
|
[Path]
|
||||||
PathChanged=/ostree/bootc
|
PathExists=/tmp/hydro-os-updated
|
||||||
Unit=bootc-status-updated.target
|
Unit=bootc-status-updated.target
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@@ -2,4 +2,3 @@
|
|||||||
Description=Target for bootc status changes
|
Description=Target for bootc status changes
|
||||||
Documentation=man:bootc-status-updated.target(5)
|
Documentation=man:bootc-status-updated.target(5)
|
||||||
StopWhenUnneeded=true
|
StopWhenUnneeded=true
|
||||||
ConditionPathExists=/run/ostree-booted
|
|
Reference in New Issue
Block a user