Attempt to utilize bling module ublue-update instead of personal systemd units.
Some checks failed
bluebuild-nvidia / Build Custom Image (recipe_nvidia.yml) (pull_request) Failing after 1m37s
bluebuild / Build Custom Image (recipe.yml) (pull_request) Failing after 1m30s

This commit is contained in:
2025-06-14 12:48:35 -04:00
parent 5a4123097e
commit cf132260df
12 changed files with 12 additions and 93 deletions

View File

@@ -0,0 +1,8 @@
[checks]
min_battery_percent = 20.0
max_cpu_load_percent = 50.0
max_mem_percent = 90.0
network_not_metered = true
[notify]
dbus_notify = true

View File

@@ -1,8 +0,0 @@
[Unit]
Description=Download bootc updates
Documentation=man:bootc(8)
ConditionPathExists=/run/ostree-booted
[Service]
Type=oneshot
ExecStart=/usr/bin/bootc update --quiet

View File

@@ -1,12 +0,0 @@
[Unit]
Description=Download bootc updates
Documentation=man:bootc(8)
ConditionPathExists=/run/ostree-booted
[Timer]
OnBootSec=15min
OnUnitInactiveSec=8h
RandomizedDelaySec=2h
[Install]
WantedBy=timers.target

View File

@@ -1,10 +0,0 @@
[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

View File

@@ -1,5 +0,0 @@
[Unit]
Description=Update flatpaks
[Service]
ExecStart=flatpak update --noninteractive

View File

@@ -1,9 +0,0 @@
[Unit]
Description=Update flatpak
[Timer]
OnBootSec=15min
OnCalendar=daily
[Install]
WantedBy=timers.target

View File

@@ -1,10 +0,0 @@
[Unit]
Description=Monitor bootc for status changes
Documentation=man:bootc-status-updated.path(5)
[Path]
PathExists=/tmp/hydro-os-updated
Unit=bootc-status-updated.target
[Install]
WantedBy=multi-user.target

View File

@@ -1,4 +0,0 @@
[Unit]
Description=Target for bootc status changes
Documentation=man:bootc-status-updated.target(5)
StopWhenUnneeded=true

View File

@@ -1,5 +0,0 @@
[Unit]
Description=Update flatpaks
[Service]
ExecStart=flatpak update --noninteractive

View File

@@ -1,9 +0,0 @@
[Unit]
Description=Update flatpak
[Timer]
OnBootSec=15min
OnCalendar=daily
[Install]
WantedBy=timers.target

View File

@@ -1,11 +0,0 @@
[Unit]
Description=Notify the user when the next update has been downloaded.
# order after update has been applied
After=bootc-status-updated.target
[Service]
Type=exec
ExecStart=/usr/bin/systemd-run --user notify-send 'Update Downloaded!' 'A new update has been downloaded! Please restart to apply update!'
[Install]
WantedBy=bootc-status-updated.target

View File

@@ -13,19 +13,13 @@ modules:
- addimageinfo.sh
- type: systemd
system:
enabled:
- bootc-fetch-updates.timer
- podman-auto-update.timer
- flatpak-system-update.timer
- flag-update-downloaded.service
user:
enabled:
- podman-auto-update.timer
- flatpak-user-update.timer
- unlock-kwallet.service
- notify-update.service
- bootc-status-updated.path
- type: bling
install:
- ublue-update
- type: dnf
install: