Remove swap space size allocation suggestion. It often won't be used on
smaller installs anyhow.
Drop /boot size to the min instead of max.
Add esp size min into the mix.
(which more than cancels out the /boot change to min)
Reduce padding to max(2G, 50% source min)
When doing an offline install, ubuntu-drivers would sometimes list a
package that is available in the archive but not present in the pool.
This is not something we would expect since we run apt-get update (with
only the pool configured when offline) in the install tree.
However, it turned out that we create the overlay with the lower layers
specified in the wrong order - which essentially makes APT indexes
visible in the source tree also visible in the OEM/third-party driver
overlay.
When calling setup_overlay(lowers=[a, b, c]), Subiquity invokes mount
with lowerdir=c🅱️a (in the reverse order).
This means that c is top, b is middle and a is bottom.
For the OEM and third-party drivers, we build overlays that are based
on:
* the source tree
* the configured tree
* the install tree
Unfortunately, we were doing the opposite. Fixed by reversing the order of
the lower layers.
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
Controllers have started, but we have decided that no refresh check
is needed, so no check_task was started (or assigned).
GET /refresh is called, resulting in:
DEBUG subiquity.server.server:446 request to /refresh?wait=true crashed
Traceback (most recent call last):
File "subiquity/server/controllers/refresh.py", line 233, in GET
await self.check_task.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
Detecting the bootloader is an obvious choice for real installs, but
is a source of glitches in CI. Default to UEFI, and if tests want
something else they should pass a specific --bootloader.
scripts/bind-patch.sh is useful for modifying the snap in the live
environment, for quickly testing changes or for things that are too
obscure to test in other ways.
Traceback (most recent call last):
File "subiquity/server/controllers/oem.py", line 161, in load_metapackages_list
self.model.metapackages = [
File "subiquity/server/controllers/oem.py", line 164, in <listcomp>
wants_oem_kernel=await self.wants_oem_kernel(
File "subiquity/server/controllers/oem.py", line 115, in wants_oem_kernel
flavor = line.split("=", maxsplit=1)[1].strip()
IndexError: list index out of range
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>