Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c54367f9 authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

ktest: Do not opencode reboot in grub setting



When setting the next kernel to boot to with grub, do not opencode
the reboot operation.  The normal reboot operation can be modified by
config options (namely POWERCYCLE_AFTER_REBOOT). This needs to affect
all reboots. Remove the opencoded reboot to make sure that any changes
to the reboot code also affect all reboots.

Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 8d735212
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1150,7 +1150,8 @@ sub wait_for_input

sub reboot_to {
    if ($reboot_type eq "grub") {
	run_ssh "'(echo \"savedefault --default=$grub_number --once\" | grub --batch && reboot)'";
	run_ssh "'(echo \"savedefault --default=$grub_number --once\" | grub --batch)'";
	reboot;
	return;
    }