Skip to content

Add support for unattended updates - #1629

Open
saba8814 wants to merge 1 commit into
mainfrom
feat/unattended-updates
Open

saba8814 wants to merge 1 commit into
mainfrom
feat/unattended-updates

Conversation

@saba8814

@saba8814 saba8814 commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

This commit introduces unattended-update cron consumer. Unattended updates are configurable to perform update autonomously or to wait for admin to reboot. Unattended upadate reuses UPDATE URL(pointing to Atom/RSS feed) from check-update and is configurable under system/software yang. Cron consumer runs rauc install .pkg thus HTTP/s range shall be supported on the web server. Also docs are included and migration script due to changes in update url. Original PR: #1562
Resolves: #1301

Description

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

@saba8814 saba8814 mentioned this pull request Sep 14, 2026
17 tasks

@troglobit troglobit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on this!

Lots of minor things still to change and discuss with other team members.

Comment thread doc/schedule.md Outdated
Comment thread doc/upgrade.md
Comment thread doc/upgrade.md Outdated
Comment thread doc/upgrade.md Outdated
Comment thread src/confd/yang/confd/infix-system-software.yang Outdated
Comment thread mkdocs.yml
@saba8814
saba8814 force-pushed the feat/unattended-updates branch from 8ec0677 to da75191 Compare September 14, 2026 14:06
Comment thread src/confd/src/core.c
@saba8814
saba8814 force-pushed the feat/unattended-updates branch 4 times, most recently from d680330 to c5f086f Compare September 17, 2026 07:34
@saba8814

saba8814 commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator Author
  1. Re‑installs the same bundle on every occurrence until reboot (medium, robustness)
    With reboot manual, running VERSION never changes after a successful install, so each schedule tick downloads and re‑flashes the identical bundle to the inactive slot. Dev builds (IS_RELEASE=false) do this unconditionally. That is needless flash wear and bandwidth, and it makes the lock the only thing preventing overlap. Check the inactive slot's version via rauc status --output-format=json (or remember the last installed tag) and skip when it already matches LATEST_TAG.

This commit introduces unattended-update cron consumer. Unattended updates are configurable to perform update autonomously or to wait for admin to reboot.
Unattended upadate reuses UPDATE URL(pointing to Atom/RSS feed) from check-update and is configurable under system/software yang. Cron consumer runs rauc install .pkg thus HTTP/s range shall be supported on the web server.
Also docs are included and migration script due to changes in update url.

Resolves: #1301

Signed-off-by: Ejub Sabic <ejub1946@outlook.com>
@saba8814
saba8814 force-pushed the feat/unattended-updates branch from c5f086f to 53532c4 Compare September 17, 2026 09:05
@saba8814
saba8814 requested a review from mattiaswal September 18, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for unattended upgrades

4 participants