From 9426615376d6c33e577181d0830d570b6dca8a55 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Fri, 29 Oct 2021 22:58:50 +0000 Subject: [PATCH] ktest: add Fedora / grubby instructions Tested with Fedora version 33 Signed-off-by: Marc Herbert --- .../setup/setup_ktest_environment.rst | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/getting_started/setup/setup_ktest_environment.rst b/getting_started/setup/setup_ktest_environment.rst index 8a85d8c2..41ed55b1 100644 --- a/getting_started/setup/setup_ktest_environment.rst +++ b/getting_started/setup/setup_ktest_environment.rst @@ -125,6 +125,15 @@ mess up what the numbers below point to! => saved_entry=4 +Fedora and derived distributions have a more elaborate system to manage +"installed" kernels. Instead of extracting ``menuentry`` lines from +``/boot/grub/grub.cfg`` with the ``awk`` command above, to list all +installed kernels use: ``grubby --info=ALL``. + +After copying it to ``/boot``/, "install" a new kernel with: +``grubby --add-kernel /boot/vmlinuz-softest --title=softest``. Check +``grubby``'s documentation for more details. + 6. Install openssh-server ------------------------- @@ -312,10 +321,21 @@ Save the following in sof-dev.conf. #REBOOT_SCRIPT = ssh $SSH_USER@$MACHINE "sed -i 's|^default.*$|default test|' /boot/loader/loader.conf" TEST_START + # TEST_TYPE can be: build, install, boot, ... TEST_TYPE = boot BUILD_TYPE = useconfig:${THIS_DIR}/sof-dev-defconfig BUILD_NOCLEAN = 1 + +For Fedora and derived distributions, make the following changes: + +.. code-block:: perl + + GRUB_MENU = "title" of the kernel entry as displayed by: 'grubby --info=ALL' + GRUB_REBOOT = grub2-reboot + REBOOT_TYPE = grub2bls + POST_INSTALL = ssh -o 'ProxyCommand none' $SSH_USER@$MACHINE sudo dracut --hostonly --force --kver ${LOCALVERSION} + 7. Build and test -----------------