** Description changed: + [ Impact ] + + Users and package maintainers cannot define PostInstallScripts (which is + a comma-separated list of scripts) reliably in drop-in configs for + ubuntu-release-upgrader, since the PostInstallScripts value is treated + as a single literal value, rather than being merged across other scripts + which declare PostInstallScripts. + + [ Test Plan ] + + 1. Define two new configs in `/usr/lib/ubuntu-release-upgrader/post- + upgrade.d/` and `/etc/ubuntu-release-upgrader/post-upgrade.d` which + contain PostInstallScripts definitions with multiple scripts to run + + 2. Run `do-release-upgrade` + + Expected behavior: All scripts listed are merged in some predictable order + Actual behavior: PostInstallScripts is treated like a value that can only be defined once, so an unknown PostInstallScripts list will be picked among the eligible scripts, and the rest will not be executed. + + [ Where problems could occur ] + + This is technically a change of the default behavior for + PostInstallScripts. If someone has gotten a custom PostInstallScripts + configuration to work in such a way that depends on another of their + PostInstallScripts *not* executing, they would see the latter list of + scripts start executing with this update. (I am doubtful that such a + user exists). + + [ Original description ] + The PostInstallScripts in do-release-upgrade are not correctly merged together when described in an extra configuration file. This extra config-file is placed in /etc/update-manager/release-upgrades.d/ and I think the expected behavior is for these entries to be merged together to allow additional post-scripts being added via packaging. Right now the selected config file to use is kinda at random due to `glob.glob()` being used and it might end up not using the pre-existing ubuntu-advantage-upgrades.cfg in there. To answer the questions when opening a bug: - This is visible on 26.04 as well as older releases. - 1:26.04.27 - Expectation would be that drop in configuration files in a .d config folder are merged and/or overwritten in a expected manner: single config values are overwritten in a alphabetical order from their config-file-name. multi-value config values/lists like the PostInstllScripts are merged together. - Some random config file got picked and not all files
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2175839 Title: Drop-in configs are sorted non-deterministic and not expanding To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2175839/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
