~dbungert/curtin:mock-from-unittests

Last commit made on 2023-08-03
Get this branch:
git clone -b mock-from-unittests https://git.launchpad.net/~dbungert/curtin
Only Dan Bungert can upload to this branch. If you are Dan Bungert please log in for upload directions.

Branch merges

Branch information

Name:
mock-from-unittests
Repository:
lp:~dbungert/curtin

Recent commits

517f04c... by Dan Bungert

several: drop python3-mock

1db4428... by Dan Bungert

unittest: use unittest.mock instead of mock

611f68a... by Dan Bungert

swap: support avail parameter

Add an avail parameter to allow swap size projections based on expected
available space. Add unit tests for existing and new (avail) usage.
Add docstring to `suggested_swapsize()`.

ecd9478... by Michael Hudson-Doyle

have ChrootableTarget ignore allow_daemons when target == "/"

For one thing, disabling deamons in the root filesystem is almost
certainly never wanted and for another this allows ChrootableTarget to
be used with "/" as non-root (for example, allowing you to run
get_efibootmgr("/") as non-root when running subiquity integration
tests).

2495681... by Michael Hudson-Doyle

support dd-raw:file:// urls

168c4fd... by Olivier Gayot

curthooks: fix exception when passing 'kernel: null'

When we don't want curthooks to install a kernel, we can pass:

  kernel: null

However, currently, it makes the code raise an exception because we run
.get() on the kernel object even if it is None.

 config.merge_config(mapping, kernel_cfg.get('mapping', {}))
 AttributeError: 'NoneType' object has no attribute 'get'
 'NoneType' object has no attribute 'get'

Fixed by returning gracefully without installing any kernel upon
encountering this configuration.

LP: #2026225

Signed-off-by: Olivier Gayot <email address hidden>

4587fd4... by Michael Hudson-Doyle

extend grub config object to handle all config under the 'grub' key

Pinched a hacked down version of my deserialization code from
subiquity...

6386240... by Dan Bungert

swap: API improvement, fixes, and tests for can_use_swapfile

b4ff4c3... by Dan Bungert

version to 23.1.1

58b0c50... by Michael Hudson-Doyle

use a config object in uefi boot entry code

a very small start!