config from .d/ is not loaded

Bug #2012737 reported by Ryan Hill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
New
Low
Unassigned
update-manager (Ubuntu)
New
Low
Unassigned

Bug Description

When running do-release-upgrade, config items from the /etc/update-manager/release-upgrades.d/

More specifically, they are loaded initially to determine ubuntu flavor, but only MetaPkgs are used.

```
  File "/usr/bin/do-release-upgrade", line 133, in <module>
    m = MetaReleaseCore(useDevelopmentRelease=options.devel_release,
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py", line 104, in __init__
    self.flavor = get_ubuntu_flavor(cache=cache)
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/utils.py", line 408, in get_ubuntu_flavor
    pkg = get_ubuntu_flavor_package(cache=cache)
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/utils.py", line 428, in get_ubuntu_flavor_package
    meta_pkgs.extend(sorted(_load_meta_pkg_list()))
  File "/usr/lib/python3/dist-packages/UpdateManager/Core/utils.py", line 416, in _load_meta_pkg_list
    parser = DistUpgradeConfig('/usr/share/ubuntu-release-upgrader')
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeConfigParser.py", line 60, in __init__
```

However the config is loaded a second time in Core/MetaRelease.py and only /etc/update-manager/release-upgrades is used for config so items such as Prompt overrides in the .d directory are not found.

p.s. My initial goal was to override Prompt with Prompt=never under the .d directory

Ryan Hill (rthill91)
description: updated
Revision history for this message
Nick Rosbrook (enr0n) wrote :

What version of Ubuntu are you trying this on?

Changed in update-manager (Ubuntu):
status: New → Incomplete
Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Changed in update-manager (Ubuntu):
importance: Undecided → Low
Revision history for this message
Ryan Hill (rthill91) wrote :

I've seen the same behavior in 20.04, 22.04, and 22.10.

22.04 was where I initially ran into the issue.

Nick Rosbrook (enr0n)
Changed in update-manager (Ubuntu):
status: Incomplete → New
Changed in ubuntu-release-upgrader (Ubuntu):
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.