~raharper/curtin:fix/uefi-reorder-missing-boot-current

Last commit made on 2020-08-21
Get this branch:
git clone -b fix/uefi-reorder-missing-boot-current https://git.launchpad.net/~raharper/curtin
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Branch information

Name:
fix/uefi-reorder-missing-boot-current
Repository:
lp:~raharper/curtin

Recent commits

d5b589e... by Ryan Harper on 2020-08-21

Add some more details around grub.reorder_uefi configuration

fc95d59... by Ryan Harper on 2020-08-19

Fix regex LAN value

8d07248... by Ryan Harper on 2020-08-19

Update docs for reorder

01f3082... by Ryan Harper on 2020-08-18

Refactor uefi reordering per discussion about network entries

For systems missing BootCurrent, curtin will order entries like so:

1. All "network" entries, using regex to match known values of names
2. The installed target entry (we know from the os variant installed)
3. All other entries

8a765f1... by Ryan Harper on 2020-08-03

uefi_reorder: Handle no bootorder change after install

When BootCurrent is missing, curtin tries to reorder the boot
menu in an attempt to not boot the newly install OS. One scenario
where we used the existing BootOrder was when the it matches before
and after install. However, if the first entry is the target OS
entry then we'll not boot via the network. Detect this matching
previous/current order scenario and move the target OS entry back
one.

7db9318... by Ryan Harper on 2020-07-24

UEFI Reorder, no BootCurrent: add more debug and better handling for same size lists

5fcb37d... by Ryan Harper on 2020-07-23

Fix py2 nose issues

3e1a8e2... by Ryan Harper on 2020-07-23

UEFI: Handle missing BootCurrent entry when reordering UEFI entries

Curtin typically reorders UEFI boot entries to place the currently
booted entry at the front of the list after install. In some cases a
system UEFI may not present a BootCurrent entry and curtin will not
performance any reordering leaving a node to boot from the newly
installed entry. For MAAS deployments, this causes issues as MAAS
expects to retain control over the node via PXE booting.

Curtin will attempt to reorder the boot menu when BootCurrent is
missing (or when forced via curtin config option) by detecting
which menu item was added by the curtin install and moving it back
once place in the list. The feature, UEFI_REORDER_FALLBACK_SUPPORT
is enabled by default. Users may disable reordering and fallback
support.

- unittest/helpers.py: Add with_logs support for CiTestCase
- docs: document grub: reorder_uefi and grub:
  reorder_uefi_force_fallback config options.

LP: #1789650

c8c6418... by Paride Legovini on 2020-07-16

Drop the Eoan vmtests (EOL)

2a5d8c1... by Dan Watkins on 2020-07-16

tools: rename remove-vmtest-release to vmtest-remove-release

This prefix matches other vmtest scripts we have in tools/, making it
easier to discover.

(Also make it executable.)