~xypron/curtin:noefivar

Last commit made on 2023-02-08
Get this branch:
git clone -b noefivar https://git.launchpad.net/~xypron/curtin
Only Heinrich Schuchardt can upload to this branch. If you are Heinrich Schuchardt please log in for upload directions.

Branch merges

Branch information

Name:
noefivar
Repository:
lp:~xypron/curtin

Recent commits

a341091... by Heinrich Schuchardt

tests: mock is_efivars_writable in TestSetupGrub

Mock a writable efivars directory in these methods:

* setUp()
* test_uses_grub_install_on_storage_config_uefi()
* test_grub_install_uefi_updates_nvram_skips_remove_and_reorder()
* test_grub_install_uefi_updates_nvram_removes_old_loaders()
* test_grub_install_uefi_updates_nvram_reorders_loaders()
* test_grub_install_uefi_reorders_no_current_new_entry()
* test_grub_install_uefi_reorders_no_curr_same_size_order_no_match()
* test_grub_install_uefi_reorders_force_fallback()
* test_grub_install_uefi_reorders_network_first()

Signed-off-by: Heinrich Schuchardt <email address hidden>

15db3e8... by Heinrich Schuchardt

tests: mock is_efivars_writable in TestUefiRemoveDuplicateEntries

Mock a writable efivars directory in setUp().

Signed-off-by: Heinrich Schuchardt <email address hidden>

e052059... by Heinrich Schuchardt

curthooks: check for non-availability of EFI variables

Some UEFI firmware does not support EFI variables at runtime.
In this case directory /sys/firmware/efi/efivars does not exist.
This would lead to an exception when calling efibootmgr.

Signed-off-by: Heinrich Schuchardt <email address hidden>

f1fd1e6... by Heinrich Schuchardt

util: is_uefi_bootable() does not imply EFI variables exist

A system may be booted via UEFI but not provide EFI variables at runtime.

In this case directory /sys/firmware/efi exists
but directory /sys/firmware/efi/efivars does not exist.

We should not try to mount the non-existent directory.

Suggested-by: Dan Bungert <email address hidden>
Signed-off-by: Heinrich Schuchardt <email address hidden>

d2611f7... by Heinrich Schuchardt

tests: mock is_efivars_writable in TestChrootableTargetMounts

In test_chrootable_target_default_mounts_uefi() mock a writable efivars directory.

Signed-off-by: Heinrich Schuchardt <email address hidden>

8d647a7... by Heinrich Schuchardt

install_grub: check for non-availability of EFI variables

Some UEFI firmware does not support EFI variables at runtime.
In this case directory /sys/firmware/efi/efivars does not exist.
This would lead to an exception when calling efibootmgr.

Signed-off-by: Heinrich Schuchardt <email address hidden>

f50e54e... by Heinrich Schuchardt

tests: mock is_efivars_writable in TestInstallGrub

In the GRUB install test mock a writable efivars directory.

Signed-off-by: Heinrich Schuchardt <email address hidden>

fbc82a0... by Heinrich Schuchardt

util: check for non-availability of EFI variables

Some UEFI firmware does not support EFI variables at runtime.
In this case directory /sys/firmware/efi/efivars does not exist.
This would lead to an exception when calling efibootmgr.

Signed-off-by: Heinrich Schuchardt <email address hidden>

2fb8852... by Heinrich Schuchardt

util: provide function is_efivars_writable()

Provide a function to determine if UEFI variable can be written.

Signed-off-by: Heinrich Schuchardt <email address hidden>

8c5f87e... by Michael Hudson-Doyle

block_meta: all fields on a disk action must match with v2 config

This is for https://bugs.launchpad.net/subiquity/+bug/1929213 and
similar reports.