From 7a10a11e0f321d81ecc724407c5fc2a9bba2531d Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Fri, 13 Jun 2025 11:28:58 -0400 Subject: [PATCH] Added path systemd unit to trigger update notification --- files/systemd/user/bootc-status-updated.path | 11 +++++++++++ files/systemd/user/bootc-status-updated.target | 5 +++++ recipes/components/base-module.yml | 1 + 3 files changed, 17 insertions(+) create mode 100644 files/systemd/user/bootc-status-updated.path create mode 100644 files/systemd/user/bootc-status-updated.target 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: