[PATCH v2 0/6] ktest: support for Boot Loader Specification

From: Masayoshi Mizuma
Date: Thu May 09 2019 - 17:38:24 EST


From: Masayoshi Mizuma <m.mizuma@xxxxxxxxxxxxxx>

Fedora 30 introduces Boot Loader Specification (BLS) [1],
it changes around grub entry configuration.

This patch series deals with the new configuration.

- Add grub2bls option as REBOOT_TYPE to deal with BLS.
- Some cleanup around getting kernel entries.

To use ktest.pl to BLS environment,

- Set REBOOT_TYPE = grub2bls.
- Set POST_INSTALL to add the kernel entry like as follows.

POST_INSTALL = ssh root@Test "/usr/bin/kernel-install add \
$KERNEL_VERSION /boot/vmlinuz-$KERNEL_VERSION"

- Set POST_KTEST to remove the kernel entry (optional).

POST_KTEST = ssh root@Test "/usr/bin/kernel-install remove $KERNEL_VERSION"

[1] https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefault

Masayoshi Mizuma (6):
ktest: introduce _get_grub_index
ktest: cleanup get_grub_index
ktest: introduce grub2bls REBOOT_TYPE option
ktest: pass KERNEL_VERSION to POST_KTEST
ktest: remove get_grub2_index
ktest: update sample.conf for grub2bls

tools/testing/ktest/ktest.pl | 89 ++++++++++++++++-----------------
tools/testing/ktest/sample.conf | 20 +++++++-
2 files changed, 62 insertions(+), 47 deletions(-)

--
2.20.1