~ogayot/curtin:fix-curthooks-no-kernel

Last commit made on 2023-07-06
Get this branch:
git clone -b fix-curthooks-no-kernel https://git.launchpad.net/~ogayot/curtin
Only Olivier Gayot can upload to this branch. If you are Olivier Gayot please log in for upload directions.

Branch merges

Branch information

Name:
fix-curthooks-no-kernel
Repository:
lp:~ogayot/curtin

Recent commits

93d47e9... 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.

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!

3b353ca... by Michael Hudson-Doyle

modernize efi boot entry handling code

"modernize" means: type annotations and passing attr.s-based types
rather than dictionaries around.

I also made some changes to reduce indentation and removed a few
defaults for arguments that were always passed and a few other things I
couldn't restrain myself from.

96ab8c1... by Michael Hudson-Doyle

tox.ini: update pylint

and fix two new reports

6412598... by Michael Hudson-Doyle

update schema for partition flag to include msftres

4d1e3f2... by Michael Hudson-Doyle

support "msftres" as a (GPT-only) partition flag

We want to mark the recovery / reset partition as a "Microsoft Reserved
Partition" as GUI disk utilities hide such partitions, so add support
for this as a value for a partition flag. I chose "msftres" because
that's what parted calls this (although it maps msftres to type code
0x27 for a DOS partition table, which I think is wrong so I'm not doing
that).

caba05c... by Michael Hudson-Doyle

storage_config: rename ptable_uuid_to_flag_entry and change return value

Every invocation of ptable_uuid_to_flag_entry (including the one in
subiquity) discards the second element of the tuple, so stop returning
it. Also rename it to ptable_part_type_to_flag (it takes more than
just UUIDs) and clean up the data structures this function works off.
This required some small tweaks in block_meta_v2.