Skip to content

Add pin_to_os_release() for offline updates#392

Merged
kb2ma merged 1 commit intomasterfrom
add-pin_to_os_release
Apr 16, 2026
Merged

Add pin_to_os_release() for offline updates#392
kb2ma merged 1 commit intomasterfrom
add-pin_to_os_release

Conversation

@kb2ma
Copy link
Copy Markdown
Contributor

@kb2ma kb2ma commented Mar 18, 2026

Adds the ability to pin a device to an OS version with pin_to_os_release(). Similar to app updates, the OS can be pinned while the device is offline. When the device comes online, we expect the cloud to push the update to the device.

A device may be pinned back to the current OS version. In contrast, start_os_update() now requires that the target OS version is not the current OS version.

Depends on #393.

Change-type: minor

@kb2ma kb2ma requested review from otaviojacobi and thgreasi March 18, 2026 03:06
@kb2ma kb2ma marked this pull request as draft March 18, 2026 03:07
Comment thread balena/models/device.py Outdated
@kb2ma kb2ma force-pushed the add-pin_to_os_release branch from c7d3207 to 723afab Compare March 18, 2026 03:19
Comment thread balena/hup.py
Comment thread balena/models/device.py Outdated
Copy link
Copy Markdown
Member

@thgreasi thgreasi left a comment

Choose a reason for hiding this comment

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

LGTM, just pending the variant check

Comment thread balena/models/device.py Outdated
Comment thread balena/models/device.py
Change-type: minor
Signed-off-by: Ken Bannister <kb2ma@runbox.com>
@kb2ma kb2ma force-pushed the add-pin_to_os_release branch from 51ff982 to fa6abf4 Compare April 14, 2026 00:46
@kb2ma kb2ma marked this pull request as ready for review April 14, 2026 01:37
@kb2ma kb2ma requested a review from thgreasi April 14, 2026 01:37
@kb2ma
Copy link
Copy Markdown
Contributor Author

kb2ma commented Apr 14, 2026

All comments addressed, @thgreasi .

@kb2ma kb2ma merged commit c9ef55c into master Apr 16, 2026
55 of 56 checks passed
@kb2ma kb2ma deleted the add-pin_to_os_release branch April 16, 2026 22:50
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.

2 participants