subiquity:backport-lunar-ci-issue

Last commit made on 2023-04-12
Get this branch:
git clone -b backport-lunar-ci-issue https://git.launchpad.net/subiquity

Branch merges

Branch information

Name:
backport-lunar-ci-issue
Repository:
lp:subiquity

Recent commits

e4bc2ec... by Olivier Gayot

api: avoid post-ing to source in autoinstalls

When running autoinstalls, the source model will be marked configured
automatically after apply_autoinstall_config has run. The selected
source will be the one described in the autoinstall section or will
default to the legacy server entry: Ubuntu Server.

Doing an additional POST request can only make things inconsistent in
fully automated installs.

When the POST request is handled, most of the models may already have
applied their autoinstall configuration, and are already relying on the
previous source selected.

Signed-off-by: Olivier Gayot <email address hidden>
(cherry picked from commit 8298ec17c819510688ab530ae77b5f7196969e37)

d031491... by Olivier Gayot

mirror: bail if source changes after applying autoinstall config

If the source model changes, the mirror model gets a chance to apply a
new apt configuration. However, if this happens during an automated
install, this is a recipe to disaster.

Make sure we raise an exception if a POST request to /source occurs
after the mirror model has started applying its autoinstall
configuration.

Signed-off-by: Olivier Gayot <email address hidden>
(cherry picked from commit 6aa9452bb0dab9d7de19320558fb9bc3a84d8010)

b375cb9... by Olivier Gayot

mirror: avoid assertion error if the source changes at the wrong time

When the source model changes, the mirror model gets notified and
replaces the "apt configurer" instance with a new one. If this happens
in the middle of a "deploy apt configuration + run apt-get update"
operation, this leads to an assertion error.

Fixed by making sure we do the entire operation on the same "apt
configurer" instance.

Signed-off-by: Olivier Gayot <email address hidden>
(cherry picked from commit 938f2ffc2432d2c7dbd69cb5503aa256ec63fbda)

30e2f18... by Dan Bungert

Merge pull request #1645 from dbungert/lunar-pr-1639

network: don't run netplan apply if no autoinstall and nm is enabled

79eb2af... by Dan Bungert

Merge pull request #1644 from dbungert/lunar-2023-04-11

Lunar 2023 04 11

54d7bb1... by Olivier Gayot

network: don't run netplan apply if no autoinstall and nm is enabled

Signed-off-by: Olivier Gayot <email address hidden>
Co-authored-by: Dan Bungert <email address hidden>
(cherry picked from commit 9d32ded2f903299fb8c380a6a7d73b39f6a71700)

8297c6a... by Dan Bungert

test/api: regression test for LP: #2015521

(cherry picked from commit fa81e0981e9d0c6028ecdbc835b9ca2750a232e1)

8795ce8... by Dan Bungert

gaps: add unittests for gap before part on msdos

(cherry picked from commit dc810414d89f0d421052f804530b346bbc73e5ec)

7ae5b3a... by Dan Bungert

gaps: fix gap when before a partition in extended

We need the ebr space if we're doing logical partitions, but not for the
primaries.

(cherry picked from commit 5219ecf50c9f4a42b0c5388421a88f6442fd9269)

8caa2cf... by Dan Bungert

locale: switch to localectl set-locale

Move away from localedef to fully set the locale.

(cherry picked from commit fb2c6da2e6ccdea8d62379491980def720f74db8)