Skip to content

Commit 8d0676a

Browse files
committed
tmt: support locally installed kernels in /prepare-system
Add support for STS_KERNEL=local, which will just use the booted kernel and assume that all the necessary files are already installed in the right place (no additional kernel RPMs will be installed). Related: #99 Signed-off-by: Ondrej Mosnacek <[email protected]>
1 parent 011a106 commit 8d0676a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tmt/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ Possible values for the `STS_KERNEL` env parameter are:
1717
* `default` - try to use the kernel currently booted on the test machine.
1818
* `latest` - update to the latest kernel available in the repos and boot it.
1919
* `secnext` - install the "secnext" kernel from https://repo.paul-moore.com/ and boot it.
20+
* `local` - use the currently booted kernel and don't try to install additional kernel RPMs - useful for e.g. locally built and installed kernels.

tmt/tests.fmf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
--repofrompath 'kernel-secnext,https://repo.paul-moore.com/rawhide/$basearch' \
3939
kernel-modules-*.secnext.* kernel-devel-*.secnext.*
4040
;;
41+
local)
42+
# for a non-rpm directly-installed kernel - assume all necessary files
43+
# are already in place and don't install any kernel packages
44+
;;
4145
*)
4246
echo "Invalid STS_KERNEL value!"
4347
exit 1

0 commit comments

Comments
 (0)