Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for major upgrades to be run with sysupgrade #2

Closed
morgant opened this issue Mar 9, 2023 · 4 comments
Closed

Check for major upgrades to be run with sysupgrade #2

morgant opened this issue Mar 9, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@morgant
Copy link
Owner

morgant commented Mar 9, 2023

It would be convenient to check and notify if a newer major OpenBSD version is available to be installed with sysupgrade.

I don't believe sysupgrade has an option to just check if an update is available. It does, however, have an -n option to download the files, but not perform the upgrade. Naturally, it would be important to check for release vs snap upgrades.

@morgant morgant added the enhancement New feature or request label Mar 9, 2023
@morgant morgant self-assigned this Mar 9, 2023
@morgant
Copy link
Owner Author

morgant commented Mar 31, 2023

Now that I've implementing checking for when running a kernel that is in the small post-beta/pre-release window (see Issue #8), I think I could use a similar methodology to check for newer major upgrades being available: check for the next kernel version path on the mirror and ensure that the SHA256.sig and architecture-specific upgrade files are available. Fortunately, OpenBSD always rolls over release versions from X.9 to (X+1).0, so the next release is easy to predict.

@morgant morgant added this to the 0.7 milestone Mar 31, 2023
morgant added a commit that referenced this issue Jul 2, 2023
…) functions (the latter using unpriv_ftp() to check for appropriate architecture-specific files on the installurl mirror for the next OpenBSD version) to check for next release version available to install via sysupgradei (check, download, and install). Issue #2
@morgant
Copy link
Owner Author

morgant commented Jul 2, 2023

I've got this functional (added a new check_for_sysupgrade() function and some additional logic when using the swupdate -i option), but it needs a bit more testing.

@morgant
Copy link
Owner Author

morgant commented Jul 2, 2023

A few more tweaks and this is now complete.

@morgant morgant closed this as completed Jul 2, 2023
morgant added a commit that referenced this issue Jul 2, 2023
… note reviewing release notes, errata, and upgrade guide before upgrading. Issue #2
@morgant
Copy link
Owner Author

morgant commented Jul 2, 2023

I have updated the new check_for_sysupgrade() function to:

  1. Skip checking for upgrades:
    • If running snapshots (probably preferable to just run sysupgrade manually in such circumstances anyway)
    • If sysupgrade is unavailable
  2. Urge user to review appropriate release notes, errata, and the upgrade guide before running sysupgrade if a new release is available

Now this should be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant