set preference during upgrade
Closed, ResolvedPublic

Description

we may need downgrade preferences for the upgrade. e.g. we have qca in xenial but don't need one in bionic currently, so Jon made an apt preference to push bionic to the ubuntu qca. since this only applies on bionic though what happens is:

  • upgrade
  • still xenial qca
  • user dist-upgrades at some point in time
  • now has bionic qca

this is a major binary compatibility concern and needs to be different.

there are facilities in the upgrader to apply "quirks" hacks to the system. on part of this is live patching, that seems not useful because it appears to apply to pre-existing files (which we don't have, could do if we wanted but seems a bit complicated). another thing seems to be some sort of hooks mechanic PostInitialUpdate and PostCleanup which would allow us to run AFAIU arbitrary code at various stages of the upgrade. we could write a preference there. lastly we could just dump in new code to hook where we want the way we want.

in the end we'll definitely need to install all the preferences we want before actually calculating the update though.
ideally this would be in files with a special DIFFERENT name from the regular preferences in bionic. e.g. 98-neon-upgrader-preferences. this file should then be ripped out after the upgrade is done. in addition, regular preferences will be installed by neon-settings, these are only useful for already existing preview installations though. i.e. after the upgrade all of the preferences should already have been applied!

(that got a bit rambley; apologies)

sitter created this task.Aug 29 2018, 9:26 AM
sitter triaged this task as Normal priority.
sitter updated the task description. (Show Details)
sitter raised the priority of this task from Normal to High.Sep 3 2018, 12:25 PM
jriddell claimed this task.Sep 3 2018, 2:33 PM
jriddell moved this task from Backlog to Doing on the KDE Neon : bionic board.Sep 4 2018, 12:39 PM

just tested a user/lts xenial -> bionic release and the apt preferences file does appear before the upgrade and get deleted after

added in now
https://build.neon.kde.org/job/openqa_xenial_devedition-gitunstable_upgrade_bionic/ doesn't want to run for me this evening, must be Friday

jriddell closed this task as Resolved.Sep 18 2018, 12:54 PM