Skip to content

Commit 9426615

Browse files
marc-hblgirdwood
authored andcommitted
ktest: add Fedora / grubby instructions
Tested with Fedora version 33 Signed-off-by: Marc Herbert <[email protected]>
1 parent 0f8a032 commit 9426615

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

getting_started/setup/setup_ktest_environment.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,15 @@ mess up what the numbers below point to!
125125
=> saved_entry=4
126126
127127
128+
Fedora and derived distributions have a more elaborate system to manage
129+
"installed" kernels. Instead of extracting ``menuentry`` lines from
130+
``/boot/grub/grub.cfg`` with the ``awk`` command above, to list all
131+
installed kernels use: ``grubby --info=ALL``.
132+
133+
After copying it to ``/boot``/, "install" a new kernel with:
134+
``grubby --add-kernel /boot/vmlinuz-softest --title=softest``. Check
135+
``grubby``'s documentation for more details.
136+
128137
6. Install openssh-server
129138
-------------------------
130139

@@ -312,10 +321,21 @@ Save the following in sof-dev.conf.
312321
#REBOOT_SCRIPT = ssh $SSH_USER@$MACHINE "sed -i 's|^default.*$|default test|' /boot/loader/loader.conf"
313322
314323
TEST_START
324+
# TEST_TYPE can be: build, install, boot, ...
315325
TEST_TYPE = boot
316326
BUILD_TYPE = useconfig:${THIS_DIR}/sof-dev-defconfig
317327
BUILD_NOCLEAN = 1
318328
329+
330+
For Fedora and derived distributions, make the following changes:
331+
332+
.. code-block:: perl
333+
334+
GRUB_MENU = "title" of the kernel entry as displayed by: 'grubby --info=ALL'
335+
GRUB_REBOOT = grub2-reboot
336+
REBOOT_TYPE = grub2bls
337+
POST_INSTALL = ssh -o 'ProxyCommand none' $SSH_USER@$MACHINE sudo dracut --hostonly --force --kver ${LOCALVERSION}
338+
319339
7. Build and test
320340
-----------------
321341

0 commit comments

Comments
 (0)