diff --git a/files/systemd/user/bootc-status-updated.path b/files/systemd/user/bootc-status-updated.path new file mode 100644 index 0000000..0b85fbf --- /dev/null +++ b/files/systemd/user/bootc-status-updated.path @@ -0,0 +1,11 @@ +[Unit] +Description=Monitor bootc for status changes +Documentation=man:bootc-status-updated.path(5) +ConditionPathExists=/run/ostree-booted + +[Path] +PathChanged=/ostree/bootc +Unit=bootc-status-updated.target + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/files/systemd/user/bootc-status-updated.target b/files/systemd/user/bootc-status-updated.target new file mode 100644 index 0000000..9fabc15 --- /dev/null +++ b/files/systemd/user/bootc-status-updated.target @@ -0,0 +1,5 @@ +[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 diff --git a/recipes/components/base-module.yml b/recipes/components/base-module.yml index c74bbae..9bd6da5 100644 --- a/recipes/components/base-module.yml +++ b/recipes/components/base-module.yml @@ -21,6 +21,7 @@ modules: - unlock-kwallet.service - notify-update.service - swww.service + - bootc-status-updated.path - type: dnf install: