diff options
| author | Steven Rostedt <[email protected]> | 2022-11-30 22:54:34 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2022-12-08 01:37:43 +0000 |
| commit | 26df05a8c1420ad3de314fdd407e7fc2058cc7aa (patch) | |
| tree | c9afb18605d5d51f72c9a4b905a58113d119522d /lib/debugobjects.c | |
| parent | ktest.pl minconfig: Unset configs instead of just removing them (diff) | |
| download | kernel-26df05a8c1420ad3de314fdd407e7fc2058cc7aa.tar.gz kernel-26df05a8c1420ad3de314fdd407e7fc2058cc7aa.zip | |
kest.pl: Fix grub2 menu handling for rebooting
grub2 has submenus where to use grub-reboot, it requires:
grub-reboot X>Y
where X is the main index and Y is the submenu. Thus if you have:
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux ...
[...]
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option ...
menuentry 'Debian GNU/Linux, with Linux 6.0.0-4-amd64' --class debian --class gnu-linux ...
[...]
}
menuentry 'Debian GNU/Linux, with Linux 6.0.0-4-amd64 (recovery mode)' --class debian --class gnu-linux ...
[...]
}
menuentry 'Debian GNU/Linux, with Linux test' --class debian --class gnu-linux ...
[...]
}
And wanted to boot to the "Linux test" kernel, you need to run:
# grub-reboot 1>2
As 1 is the second top menu (the submenu) and 2 is the third of the sub
menu entries.
Have the grub.cfg parsing for grub2 handle such cases.
Cc: [email protected]
Fixes: a15ba91361d46 ("ktest: Add support for grub2")
Reviewed-by: John 'Warthog9' Hawley (VMware) <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
