[Merge] ubuntu-release-upgrader:server-mode-check into ubuntu-release-upgrader:ubuntu/jammy
Brian Murray
mp+428312 at code.launchpad.net
Mon Aug 15 15:01:13 UTC 2022
Brian Murray has proposed merging ubuntu-release-upgrader:server-mode-check into ubuntu-release-upgrader:ubuntu/jammy.
Requested reviews:
Julian Andres Klode (juliank)
For more details, see:
https://code.launchpad.net/~ubuntu-core-dev/ubuntu-release-upgrader/+git/ubuntu-release-upgrader/+merge/428312
Looking at the calls to self.cache.need_server_mode() in DistUpgradeController.py one of them can do more harm than good by switching from a "desktop" mode upgrade to a "server" mode upgrade. This changes that by only calling the function again if "server" mode is already set.
I tested an upgrade of an Ubuntu 20.04 server install with this change and it worked without issue. Additionally, I tested a desktop upgrade of Ubuntu 22.04 (only the calculation of the DistUpgrade) and it also worked without an issue.
It might also be necessary to reset `os.environ["RELEASE_UPGRADE_MODE"]`, however it looks like there is an existing bug with it not being set after changing mode.
--
Your team Ubuntu Core Development Team is subscribed to branch ubuntu-release-upgrader:ubuntu/jammy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 1316 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20220815/0c1b4e60/attachment.diff>
More information about the Ubuntu-reviews
mailing list