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

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

ktest: Sync before reboot



Before rebooting the target, run the sync command, as it seems that
either Grub2 or systemd gets screwed up if you update to reboot a kernel
once and do a reboot without doing a sync.

Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent a15ba913
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1147,6 +1147,9 @@ sub wait_for_monitor;
sub reboot {
    my ($time) = @_;

    # Make sure everything has been written to disk
    run_ssh("sync");

    if (defined($time)) {
	start_monitor;
	# flush out current monitor