Skip to content

upgrades: Treat n/a release as testing

James Valleroy requested to merge jvalleroy/freedombox:upgrades-release-na into main

Closes #2092 (closed)

On testing and unstable systems, /etc/os-release does not contain VERSION_ID. In this case, lsb_release will report the release as "n/a".

For unstable, this means that backports can be enabled in development mode. When this happens, trixie-backports will be added as an apt repository. The repository already exists, so it does not cause any problem.

Tests:

  • In stable container, backports can be enabled.

  • In stable container, dist-upgrade can be disable and enabled.

  • In stable container, in development mode, dist-upgrade can be started.

  • In testing container, backports cannot be enabled.

  • In testing container, dist-upgrade cannot be enabled or started.

  • In testing container, in development mode, backports can be enabled.

  • In testing container, in development mode, dist-upgrade cannot be started.

  • In unstable container, in development mode, backports can be enabled (as trixie-backports).

  • In unstable container, in development mode, dist-upgrade cannot be started.

Signed-off-by: James Valleroy jvalleroy@mailbox.org

Merge request reports

Loading